|
Re: Vertical Alignment Of Sections [message #328145 is a reply to message #328138] |
Thu, 15 May 2008 13:43 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Jan Kohnert wrote:
> Hello,
>
> I've a Section which I tell to align vertically.
>
> Section section = toolkit.createSection(form.getBody(),
> Section.TITLE_BAR | Section.FOCUS_TITLE | Section.EXPANDED |
> Section.TWISTIE);
> TableWrapData data = new TableWrapData(TableWrapData.FILL);
> data.align = TableWrapData.FILL;
> data.grabVertical = true;
> section.setLayoutData(data);
>
> When adding controls into the sections client, the sections height is
> always just as high as the accumulated content of its client.
> Sections covering all available vertical space wether there content
> requires it or not can be seen in the plugin manifeft editor ('Rutime'
> or 'Extensions' Tab).
>
> My question is, how can I make my section as high as the FormEditor
> (ManagedForm), just as it can be seen in the plugin manifest editor?
The TableWrapLayout isn't going to stretch the section vertically, only
horizontally. To get sections that fill the page vertically you should
use a different layout, perhaps FillLayout (the simplest) or GridLayout
or FormLayout.
Hope this helps,
Eric
'
|
|
|
Powered by
FUDForum. Page generated in 0.14814 seconds