PDA

View Full Version : Form Scrolling Problem



gary7au
21 Jan 2011, 4:35 AM
I have a Panel with a form on it and I Dynamically build the form each time I navigate to it.

Firstly I remove all the components on the form by calling form.removeAll();

I call then call form.insert(form.items.length, "component Goes here");

to dynamically build the form.

This works perfectly MOST of the time, my components are added correctly and I can scroll up and down to my hearts content. However some of the time, and I am unable to pinpoint exactly when, the scrolling stops working. Its as if the scroll MAX size value is the size of the window.

Hopefully I have explained my problem correctly.

Anyone out there know how I can ensure that my scrolling size/window is set correctly?

Cheers
Gary