Form layout correct only during resizing? [message #576646] |
Wed, 12 September 2007 08:32 |
Kim Sullivan Messages: 44 Registered: July 2009 |
Member |
|
|
Hello,
I've encountered a strange problem - my form is laid out too wide, so
that horizontal scrollbars appear. The strange thing is, that the form
is laid out correctly during resizing, but once resizing stops, it goes
back to being too wide (and scrollbars appear).
The main form has a GridLayout (because I sometimes need to display a
master details block on the bottom). The top is filled with a Composite
with GridData(SWT.FILL, GridData.BEGINNING, true, false), and a
TableWrapLayout with two columns (setting columns equal width doesn't help).
The top composite contains 2 sections with a TableWrapLayout, both have
their layuout data set to FILL_GRAB.
+form body - GridLayout-----------------------------------+
| |
| +top composite - TableWrapLayout(boolean,2)-----------+ |
| | | |
| | +section (FILL_GRAB)----+ +section (FILL_GRAB)----+ | |
| | | | | | | |
| | +-----------------------+ +-----------------------+ | |
| | | |
| +-----------------------------------------------------+ |
| |
+---------------------------------------------------------+
Thanks for any pointers,
Kim
|
|
|
Powered by
FUDForum. Page generated in 0.05446 seconds