View Full Version : How to take scrollbars into account automatically when AJAX loading panels

18 Dec 2009, 2:01 PM
I have about 7 AJAX loaded panels that will be variable heights after they all finish loading. At the start, there is no scrollbar on the containing tabpanel because the height of the items are not tall enough to trigger one.

After they all finish loading, a scrollbar appears but the layout does not automatically accomodate it, it seems that the appearance of a scrollbar does not trigger a resize event/doLayout. This results in the boxes being cut off on the right by the width of the scrollbar.

Has anyone else run into this/discovered a fix?

20 Dec 2009, 5:47 PM
This sounds like your CSS has issues. A demo would be helpful.
Btw, you can set the main panel to be: 'overflow: scroll' ..making the scrollbar displayed even the content has not exceeded the container.