PDA

View Full Version : scroller.scrollTo don't work if not launched manually just before



pushreset
23 Jun 2011, 8:34 AM
Hello,

I encounter a problem when i want to use the scrollTo function of the scroller component.

When i execute this command (by a button located on an another panel) :


myPanel.scroller.scrollTo({x: 0, y: 200}, true);My panel is scrolling only if just before, i have scroll it manually by touching the screen. It's like i have lost focus on the scroller.

Someone have an idea of where is the problem ?

Thank you.

pushreset
24 Jun 2011, 12:10 AM
Someone on Stackoverflow give me the solution :


myPanel.scroller.updateBoundary();

http://stackoverflow.com/questions/6455413/scroller-scrollto-in-sencha-touch-dont-work-if-not-launched-manually-just-before