Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Margin height incorrect sizing
Margin height incorrect sizing [message #126646] Tue, 31 March 2009 19:27 Go to next message
Eclipse UserFriend
Originally posted by: peterka.jiri.gmail.com

Hi,

I noticed some incorrect sizing of RWT widgets. Specificaly there is a
gap above a Group and buttons even marginHeight is set to 0. You can
reproduce it with this fragment of code:

public int createUI() {
Display display = new Display ();
Shell shell = new Shell (display,SWT.NO_TRIM);
shell.setMaximized(true);
Group group = new Group(shell, SWT.NONE);

GridLayout gridLayout = new GridLayout (3, false);
gridLayout.marginWidth = 0;
gridLayout.marginHeight = 0;
gridLayout.horizontalSpacing = 0;
gridLayout.verticalSpacing = 0;
FillLayout fill = new FillLayout(SWT.FILL);
fill.marginHeight = 0;
fill.marginWidth = 0;
shell.setLayout (new FillLayout(SWT.FILL));
group.setLayout(gridLayout);

Button button0 = new Button (group, SWT.PUSH);
button0.setText ("button0");
GridData data = new GridData (SWT.BEGINNING, SWT.BEGINNING, false,
false, 1, 1);
button0.setLayoutData (data);

Button button1 = new Button (group, SWT.PUSH);
button1.setText ("button1");
data = new GridData (SWT.BEGINNING, SWT.BEGINNING, false, false, 1, 1);
button1.setLayoutData (data);

shell.open ();

while (!shell.isDisposed ()) {
if (!display.readAndDispatch ())
display.sleep ();

}
return 0;
}

Questions:
* Is it a bug?
* Is there any workaround how to avoid this?

Best regards

Jiri
Re: Margin height incorrect sizing [message #126869 is a reply to message #126646] Thu, 02 April 2009 09:05 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2400
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Jiri,

I've tested your snippet in SWT and RAP behave exactly the same as SWT.

Best,
Ivan
Re: Margin height incorrect sizing [message #126993 is a reply to message #126869] Fri, 03 April 2009 07:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peterka.jiri.gmail.com

This is a multi-part message in MIME format.
--------------040707080306040502040605
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Ivan,

Good to hear it's all right on your side, but my experience is different
(see attached image):

* SWT - there is no space between Group frame and the top of the button
* RWT - there is 5px space regardless marginHeight is 0,3 or 5

It's not a major problem but some limitation for precise positioning

Tested on RAP 1.1.2 SR2, Firefox 3.0.7, Ubuntu 64bit

Which version of RAP did you use?

Jiri


Ivan Furnadjiev wrote:
> Hi Jiri,
>
> I've tested your snippet in SWT and RAP behave exactly the same as SWT.
>
> Best,
> Ivan
>


--------------040707080306040502040605
Content-Type: image/png;
name="SWT-vs-RWT.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="SWT-vs-RWT.png"

iVBORw0KGgoAAAANSUhEUgAAAUUAAADzCAYAAAARkASBAAAAAXNSR0IArs4c 6QAAAAZiS0dE
AP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9kEAwcX NtGm6eMAAAAZ
dEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAa+UlEQVR42u3d d1wT5+MH8M8l
QEARZVhFFFHEautExY1WBfdq7deBWq12WbdWv1pHcZSq1Tr67dC2dtna4c9R La66FXe1ol22
ooKiFhBZIbnL/f4ICQkQCDQqFz9vXvdK7i55uHse7sNzKxFSb9+QIQjQa7X4 /eIZZKTfhSzL
IOUTBAGelbwAQUDmvXS2K9uV7KlfUyhe+jkO7h4VUS0gEGq1C2vGCUiSiD/i z6Kytx/ble1K
djLXZnpaKgKDGwAGA3J1WawZZ2hcF1doc3IQ8mQttivbleykMj2RZRkuaheI op614iREUc92
ZbtSWUORiIgsdp9tuXHrNs7FX0JGVtFddJVKBbVaDT9fHzxeNwjV/PxYqwrA dmW7sl3LGIpn
L1zC4MFDUdXvMZuv+fvKX8jOzsLBg/tRK8AfTRo8zpot59iubFe2qx2hKAMo eHY/KzsLVf0e
w+9/XTLOFAQAgGDxmv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iBiKREQMRSIihiIREUORiIihSETE UCQiYigSETEU
iYgYikREDEUiIoYiERFDkYiIoUhExFAkImIoEhExFImIGIpERAxFIiKGIhER Q5GIiKFIRMRQ
JCIihiIREUORiIihSETEUCQiYigSETEUiYgYikREDEUiIoYiERFDkYiIoUhE xFAkImIoEhEx
FImIGIpERAxFIiKGIhERQ5GIiKFIRMRQJCJyav8P5gr1ZaLKwmcAAAAASUVO RK5CYII=
--------------040707080306040502040605--
Re: Margin height incorrect sizing [message #127006 is a reply to message #126993] Fri, 03 April 2009 07:32 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2400
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Jiri,

I'm using RAP from CVS HEAD. At least on Windows the SWT and RAP behave
the same. This space is used by Group text I suppose.

Best,
Ivan

Jiri Peterka wrote:
> Hi Ivan,
>
> Good to hear it's all right on your side, but my experience is
> different (see attached image):
>
> * SWT - there is no space between Group frame and the top of the button
> * RWT - there is 5px space regardless marginHeight is 0,3 or 5
>
> It's not a major problem but some limitation for precise positioning
>
> Tested on RAP 1.1.2 SR2, Firefox 3.0.7, Ubuntu 64bit
>
> Which version of RAP did you use?
>
> Jiri
>
>
> Ivan Furnadjiev wrote:
>> Hi Jiri,
>>
>> I've tested your snippet in SWT and RAP behave exactly the same as SWT.
>>
>> Best,
>> Ivan
>>
>
>
> ------------------------------------------------------------ ------------
>
Re: Margin height incorrect sizing [message #127296 is a reply to message #126993] Mon, 06 April 2009 09:25 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Jiri,

> (see attached image):
>
> * SWT - there is no space between Group frame and the top of the button
> * RWT - there is 5px space regardless marginHeight is 0,3 or 5

Indeed, the Group box in RWT has some space above and below the upper
line even when there is no text. You can configure this space in a
custom theme. In SWT, this space is only there when a text is set. If
this difference is a problem for you, please file a bug.

If you use Group boxes without text often, you might also consider using
simple Composites with a border instead.

Best regards, Ralf
Re: Margin height incorrect sizing [message #128549 is a reply to message #127296] Sun, 19 April 2009 22:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peterka.jiri.gmail.com

Hi Ralf,

thanks for solution, custom theme should do that. Composite with border
works as well, nevertheless it has not the same style of frame as a
Group widget.

I know the way how to use CSS themes in full RAP application, but I
don't know how to do it in a pure RWT application (without platform,
extensions, bundles,...). How can I use CSS in such a application type?

Jiri


Ralf Sternberg wrote:
> Hi Jiri,
>
>> (see attached image):
>>
>> * SWT - there is no space between Group frame and the top of the button
>> * RWT - there is 5px space regardless marginHeight is 0,3 or 5
>
> Indeed, the Group box in RWT has some space above and below the upper
> line even when there is no text. You can configure this space in a
> custom theme. In SWT, this space is only there when a text is set. If
> this difference is a problem for you, please file a bug.
>
> If you use Group boxes without text often, you might also consider using
> simple Composites with a border instead.
>
> Best regards, Ralf
Re: Margin height incorrect sizing [message #128640 is a reply to message #128549] Mon, 20 April 2009 09:06 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Jiri Peterka wrote:
> Hi Ralf,
>
> thanks for solution, custom theme should do that. Composite with border
> works as well, nevertheless it has not the same style of frame as a
> Group widget.
>
> I know the way how to use CSS themes in full RAP application, but I
> don't know how to do it in a pure RWT application (without platform,
> extensions, bundles,...). How can I use CSS in such a application type?
Please ssee this post:
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg06094.html

>
> Jiri
>
>
> Ralf Sternberg wrote:
>> Hi Jiri,
>>
>>> (see attached image):
>>>
>>> * SWT - there is no space between Group frame and the top of the button
>>> * RWT - there is 5px space regardless marginHeight is 0,3 or 5
>>
>> Indeed, the Group box in RWT has some space above and below the upper
>> line even when there is no text. You can configure this space in a
>> custom theme. In SWT, this space is only there when a text is set. If
>> this difference is a problem for you, please file a bug.
>>
>> If you use Group boxes without text often, you might also consider using
>> simple Composites with a border instead.
>>
>> Best regards, Ralf
Previous Topic:Context menu in custom widget
Next Topic:NullPointerException in Tomcat
Goto Forum:
  


Current Time: Sat Feb 04 23:27:24 GMT 2023

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

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

Back to the top