First click on Splitter widget causes scrolling

Thread is closed for posting
5 posts, 0 answers
  1. Will
    Will avatar
    34 posts
    Member since:
    Oct 2013

    Posted 13 Jun 2014 Link to this post

    Greetings,

    When my browser window is small enough that the entire (horizontal) Splitter doesn't fit on screen, clicking the Splitter's collapse/expand thumb (handle) causes the window to scroll up to a point where the top of the Splitter is at the top of the screen.  Then clicking again causes the expected collapse/expand behavior.  I have a feeling that this may not be specifically a Splitter issue but it is the only place I have seen it.  To me this is a very annoying behavior and it makes my users think the Splitter is not working correctly.  Can anyone suggest a way to suppress the scrolling and get the click event straight to the Splitter?

    Thanks,
    Will 
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 17 Jun 2014 Link to this post

    Hello Will,

    This behavior is caused because the splitter focuses the splitbar element in order to allow keyboard navigation. To disable this functionality, remove the mousedown handler of the splitbars:

    $("[data-role=splitter]").children(".k-splitbar").off("mousedown.kendoSplitter");

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Will
    Will avatar
    34 posts
    Member since:
    Oct 2013

    Posted 17 Jun 2014 Link to this post

    Perfect. Thanks Alex!  And thank you for the explanation.

    Will
  5. Nisarg
    Nisarg avatar
    18 posts
    Member since:
    Jan 2015

    Posted 24 Feb 2015 Link to this post

    Hi Alex,

    For me this happens without clicking. When I bring the mouse over the splitbar, the pane above, gets it's scrollbars reset. Suggestion?

    Thanks,
    Nisarg
  6. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 25 Feb 2015 Link to this post

    Hello Nisarg,

    We are not aware of this issues and it appears different than the one originally posted here. Please open a new thread along with a reproduction sample.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready