View Full Version : scrollbar appears on Form - only if browser window resized manually

5 Jul 2012, 11:54 AM
I have a form with a (vertical) scrollbar, but when I first load the page the scrollbar isn't visible (content at the bottom is clipped). If I resize the browser window and then resize it back to it's original size the scrollbar has appeared!

Is there a way to trigger the rendering of the scrollbar without manually resizing the window?
Like a hack that will trigger whatever's making it appear?

5 Jul 2012, 12:29 PM
I've found that setting the main form to it's current size triggers the scrollbar visibility:

win.setHeight( mainDiv.clientHeight );
win.setWidth( mainDiv.clientWidth );

5 Jul 2012, 1:11 PM
Thank you for the follow up.