View Full Version : Scroller not long enough after AJAX images load

28 Mar 2011, 8:07 AM

Having a bug where when I load an AJAX HTML page after a

Ext.getCmp('mainPanel').setActiveItem(objDetails, {type: 'slide', direction: 'left'});

if the images load slow the scrolling will not allow you to move at all -- have to reorient the device to get scrolling back (treats the page as a very short page)

Anyone know what I can do?

28 Mar 2011, 7:22 PM
OK, figured it out. Just in case anyone else ever has this issue..

The problem wasn't with the AJAX content itself, it was that I was reusing my objDetails container, and after leaving it I was using

since I figured clearing out the content of the container would help in optimization with older devices (like my slow-as-hell-with-Sencha-iPodTouch2G). But that seemed to cause the scroller to assume there was no content, reset the scroller to no height, and each page I loaded afterwards Sencha seemed to assume they were also no needing the scroll wheel.
At least, that's my take on it for now! :D