scrollTo does not work properly on a large site

5 posts, 1 answers
  1. Answer
    Alexander
    Alexander avatar
    7 posts
    Member since:
    Feb 2013

    Posted 17 Jun 2013 Link to this post

    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.
  2. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 18 Jun 2013 Link to this post

    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!
  3. Alexander
    Alexander avatar
    7 posts
    Member since:
    Feb 2013

    Posted 18 Jun 2013 Link to this post

    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
  4. Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 20 Jun 2013 Link to this post

    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!
  5. Alexander
    Alexander avatar
    7 posts
    Member since:
    Feb 2013

    Posted 23 Jun 2013 Link to this post

    Hello,

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

    Best,
    Alex
Back to Top