Apr 20, 2009, 3:17 PM
AutoScroll whitespace not disappearing on window resize
I have a window that contains a BorderLayout with West and Center regions. The West region is made up of another BorderLayout, with North and Center regions. The Center region is made up of a Panel that contains a ContainerLayout inside. This ContainerLayout contains multiple panels that has Collapsable=True, to try and simulate an Accordian type control that each panel can remain visible. The outer panel has AutoScroll=True. When collapsing/expanding the panels within the ContainerLayout, it will AutoScroll correctly, displaying/hiding the scrollbar correctly. However, if the scrollbar is currently visible, and the outer window is resized enough to not need the scrollbars, the scrollbars disappear, but the resulting whitespace remains. Please take a look at the attached images.
On the first image (autoscroll_good.gif) the window is resized enough to require vertical scrollbar. The second image (autoscroll_bad.gif) the window height was moved down a little to not require vertical scrollbar. You can see the scrollbar correctly disappears, but the whitespace remains. I did set the "MonitorWindowResize=True", but that didn't seem to work.
On the first image (autoscroll_good.gif) the window is resized enough to require vertical scrollbar. The second image (autoscroll_bad.gif) the window height was moved down a little to not require vertical scrollbar. You can see the scrollbar correctly disappears, but the whitespace remains. I did set the "MonitorWindowResize=True", but that didn't seem to work.