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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -