Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to remove padding value from perspective's page layout (How to remove padding value from the perspective's page layout container)
How to remove padding value from perspective's page layout [message #1758247] Sat, 25 March 2017 19:29 Go to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 193
Registered: October 2010
Senior Member
Hi,

We use theme contribution to extend the existing RAP default theme. We have 2 perspectives to implement the login and it works well. By default when start, the login perspective is loaded, and when the user/pass credentials are processed and valid, we unload the login perspective and load the client perspective, where application module constructs are placed.

We are required to remove the padding from left panel. please find the attachment.
(the space between top, left and bottom should be removed, and this should be ok, as we don't place other views editor in login perspective).

Any idea ?

Regards,
Sudesh
  • Attachment: log_in.png
    (Size: 60.17KB, Downloaded 88 times)
  • Attachment: expected.png
    (Size: 53.41KB, Downloaded 109 times)

[Updated on: Sat, 25 March 2017 19:54]

Report message to a moderator

Re: How to remove padding value from perspective's page layout [message #1758298 is a reply to message #1758247] Mon, 27 March 2017 11:24 Go to previous messageGo to next message
Frank Gruendel is currently offline Frank GruendelFriend
Messages: 22
Registered: January 2014
Junior Member
If, for example, the left part of your view is a Composite, and if you have a theming css file somewhere, you can try this:

In your css file:

Composite.KeyStringOfYourChoice
{
padding: 0px 0px 0px 0px;
}

In your java file:

final Composite yourComposite = new Composite(composite, SWT.NONE);
yourComposite.setData(RWT.CUSTOM_VARIANT, "KeyStringOfYourChoice");

This will work fine for all controls whose padding values can be controlled via CSS. An excellent page for finding this out would be http://download.eclipse.org/rt/rap/doc/3.0/guide/reference/theming/index.html
Re: How to remove padding value from perspective's page layout [message #1758460 is a reply to message #1758298] Tue, 28 March 2017 22:41 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 193
Registered: October 2010
Senior Member
Thanks,
let me try and keep you posted !
Re: How to remove padding value from perspective's page layout [message #1758463 is a reply to message #1758460] Tue, 28 March 2017 23:09 Go to previous messageGo to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 206
Registered: February 2011
Senior Member
I wouldn't think a theme padding value would impact the padding of a Composite. It would be a Layout creating the gap when it lays out it's child controls
Re: How to remove padding value from perspective's page layout [message #1759120 is a reply to message #1758463] Thu, 06 April 2017 15:28 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 193
Registered: October 2010
Senior Member
Correct, composite padding didn't help here. Any idea how to fix this or workaround ?
Re: How to remove padding value from perspective's page layout [message #1759148 is a reply to message #1759120] Fri, 07 April 2017 00:08 Go to previous message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 206
Registered: February 2011
Senior Member
You'll need to walk through the widget tree, find the correct composite and update the values of its layout manager.
Previous Topic:Kura error for Raspbian jessie with Pixel
Next Topic:how to get product name in applications's title bar?
Goto Forum:
  


Current Time: Tue Oct 16 20:47:22 GMT 2018

Powered by FUDForum. Page generated in 0.02070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top