This is a migrated thread and some comments may be shown as answers.

scrollTo does not work properly on a large site

4 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 17 Jun 2013, 10:33 PM
Hi,

I have got a view with a lot of content (about 18000px high on my smartphone) and I am trying to jump to a specific position in the view by calling

$('#myview').data('kendoMobileView').scroller.scrollTo(0,-200);

upon clicking a particular button. If I click the button before I do anything else, this does not work properly: the scroller scrolls down a bit but returns to the top immediately. However, if I scroll the scroller manually before I click the button, it works perfect.

By the way, I also found that the scrollTop property of the scroller widget returns undefined or NaN in the beginning.

Best,
Alex

P.S.: I am using Kendo UI Mobile 2013.1.527 but the error also occurs with the stable build 2013.1.514.

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 18 Jun 2013, 07:06 AM
Hello Alexander,

Thank you for contacting us. It seems like a bug on our side - especially the NaN or undefined values. I think that I managed to reproduce the problem in this sample - can you please verify that we talk about the same thing?

I will file the problem in our bug tracker, we will try to address it for our next internal build. I am also updating your telerik points for this finding. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Missing User
answered on 18 Jun 2013, 10:50 PM
Hello Petyo,

thank you very much for your reply. I checked out your sample and this is exactly what I am talking about. Meanwhile I found out that the bug is not restricted to very large views it seems to happen with scrollers of any size.

Best regards,
Alex
0
Petyo
Telerik team
answered on 20 Jun 2013, 03:05 PM
Hello,

Thank you for the confirmation Alexander. We will try to address the problem for our next internal build release, due tomorrow. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Missing User
answered on 23 Jun 2013, 10:26 PM
Hello,

thank you very much for the fast update! The problem is now solved.

Best,
Alex
Tags
General Discussions
Asked by
Missing User
Answers by
Petyo
Telerik team
Missing User
Share this question
or