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

Focus causes scrollbars to jump && How to make window topmost always?

3 Answers 464 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jordon
Top achievements
Rank 1
Jordon asked on 23 Jul 2013, 09:54 PM
Hi, 

This is a two question post, hope that doesn't cause anyone grieve.

First Question:

I have multiple windows on my page, which generally results in having scrollbars.
I would like to know if there is a way to make it so that when I click and focus a widget the scrollbars will not move? If you move a widget half way off screen with scrollbars showing, and then unfocus, scroll all the way to the top left corner and then focus that widget, the scroll bars jump to show the bottom right corner of that widget. I find the behavior a tad annoying and would like to try removing that behavior.

Second Question:

I have a kendoWindow that I would like to keep on the page at all times, and always the TOPMOST window. 
I have tried setting the z-index of that window to something very high, but it loads before the other kendoWindows. When those open they notice its z-index and picks a higher number. Is there a way for me to have a kendoWindow where i can decide its z-index without effecting new windows to the page?

Thanks

3 Answers, 1 is accepted

Sort by
0
Jordon
Top achievements
Rank 1
answered on 24 Jul 2013, 10:13 PM
Found an answer to the second question.

If you do an 'appendTo' option to a location that isn't 'body' the remaining windows will not interact with its z-index, therefore letting you set it higher than the expected window to go.


Still looking for a solution for the focus jumps.
0
Accepted
Petur Subev
Telerik team
answered on 25 Jul 2013, 09:17 AM
Hello Jordan,

Basically this is coming from the keyboard navigation. I can suggest you to turn of the autoFocus option to false.

Check the following example (try to turn on/off the autoFocus option):

http://jsbin.com/unosip/6/edit

I hope this helps.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jordon
Top achievements
Rank 1
answered on 25 Jul 2013, 02:48 PM
Thank you! I am glad it was something so simple to change.
Tags
Window
Asked by
Jordon
Top achievements
Rank 1
Answers by
Jordon
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or