gwt - StackLayoutPanel has no more place to show the children when there are too many headers ... how I can fix this? -
stacklayoutpanel has no more place show children when there many headers ... how can fix this?
my structure of program is
docklayoutpanel: east, wets, center ----> scrollpanel ----> stacklayoutpanel
in middle have stacklayoutpanel, issue when put headers in stack many have no place open , scroll not updated size son of header opened if has space , out of range.
would know how center can scrollpanel son of stacklayoutpanel open? because said, if put lot in stacklayoutpanel headers has no place open , as wrap in scrollpanel stacklayoutpanel space resize scroll contains it.
greetings jero.
you'll have explicitly change size of stacklayoutpanel. have calculate size yourself.
if each header 40 pixels high, example, , want displayed child (son) have 200 pixels display, call stacklayoutpanel.setheight((40*numchildren + 200)+"px");
if want take of available space before scrolling, you'll have fancier in calculations, it's flexible plan!
Comments
Post a Comment