extra whitespace in sectionclient [message #436237] |
Fri, 02 September 2005 15:14 |
Andreas Pakulat Messages: 127 Registered: July 2009 |
Senior Member |
|
|
Hi,
I wanted to create a Section with subsections, via something like the
following code:
Section s = toolkit.createSection(form.getBody(), Section.DESCRIPTION |
Section.TWISTIE | Section.EXPANDED);
s.addExpansionListener(...) // Do a reflow of the form
s.setText("Heading");
s.setDescription("Desc");
toolkit.createCompositeSeparator(s);
Composite client = toolkit.createComposite(s);
Section sub1 = toolkit.createSection(client, ...);
sub1.addExpansionListener(...);
sub1.setText("Sub1");
sub1.setDescription("SubDesc1");
toolkit.createCompositeSeparator(sub1);
Composite c1 = toolkit.createComposite(sub1);
sub1.setClient(c1);
Section sub2 = toolkit.createSection(client, ...);
sub2.addExpansionListener(...);
sub2.setText("Sub2");
sub2.setDescription("SubDesc2");
toolkit.createCompositeSeparator(sub2);
Composite c2 = toolkit.createComposite(sub2);
sub1.setClient(c2);
s.setClient(client);
But what I get is the first subsection + description and then about 5cm
Whitespace on my monitor - which belongs to that subsection. The same
for the rest of the sections.
How do I find the cause of this, or maybe somebody already sees the
error from the above code.
Thanks,
Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds