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

First click on Splitter widget causes scrolling

4 Answers 74 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Will
Top achievements
Rank 1
Will asked on 13 Jun 2014, 06:13 PM
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 

4 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 17 Jun 2014, 11:49 AM
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!
 
0
Will
Top achievements
Rank 1
answered on 17 Jun 2014, 12:31 PM
Perfect. Thanks Alex!  And thank you for the explanation.

Will
0
Nisarg
Top achievements
Rank 1
answered on 24 Feb 2015, 04:52 PM
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
0
Alex Gyoshev
Telerik team
answered on 25 Feb 2015, 02:40 PM

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!
 
Tags
Splitter
Asked by
Will
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Will
Top achievements
Rank 1
Nisarg
Top achievements
Rank 1
Share this question
or