jQuery UI Widgets › Forums › Scheduler › Scrolling to the top when header is invisible
This topic contains 6 replies, has 2 voices, and was last updated by elijadar 6 years, 5 months ago.
December 19, 2016 at 1:08 pm Scrolling to the top when header is invisible #89959
On IE11 when there is no header visible on jqxScheduler first click will scroll the grid to the top so header becomes visible. When you scroll the grid down so the header is invisible next click (on arbitrary row) will not scroll it to the top but second click (on arbitrary row) will do it. It looks like each even mouse click scrolls the grid to the top and each odd mouse click does not.
In Chrome jqxScheduler scrolls to the top only after focus lost.
Can it be fixed on IE11 so jqxScheduler behaves like in chrome?
Can I disable scrolling to the top when header is invisible?
December 19, 2016 at 1:20 pm Scrolling to the top when header is invisible #89961
- This topic was modified 6 years, 5 months ago by elijadar.
On click, we set the focus if it’s not in the Scheduler. Different browsers behave in a different way when focus is set.
http://www.jqwidgets.comDecember 19, 2016 at 3:11 pm Scrolling to the top when header is invisible #89967
During described procedure focus remains in the scheduler (after acquiring it first time).
We just click on control two or more times. Focus doesn’t move from the scheduler.
ThanksDecember 20, 2016 at 1:04 pm Scrolling to the top when header is invisible #89989
Sorry, but I do not understand what your post means. Let me explain why it works in the way it works. The first focus brings the element into View. The element is the Scheduler. Chrome understands that the Scheduler is already into view and does not re-scroll. IE scrolls to the top of the element.
http://www.jqwidgets.comDecember 20, 2016 at 8:41 pm Scrolling to the top when header is invisible #90003
Here is a small visual content that shows what I described in the post (about each second (or even) click).
The questions remain the same.
What should we do if we have the Scheduler with height more than the height of the page?
Is it possible to disable calling focus on each second click?
ThanksDecember 21, 2016 at 6:46 am Scrolling to the top when header is invisible #90010
The answer is the same. If the focus is not in the scheduler it will scroll. This is browser behavior.
http://www.jqwidgets.comDecember 21, 2016 at 2:51 pm Scrolling to the top when header is invisible #90023
Please pay special attention at the screencast to notice that after scroll down I perform a left mouse click in the grid so a cell becomes highlighted and grid does not jump up to the header.
Only after second left mouse click on another cell, Scheduler jumps up to the header.
You can easily do the same. No special preparation requires.
- Go to the jqxScheduler Demo with IE11
- Scroll to the grid so only half of it is visible
- Make left mouse click on a cell inside (1st click). Please note that after your 1st click jqxScheduler will jump up to the header.
- After that you should scroll slightly down (with browser scroll and not with grid internal scroll) one more time
- Click on a cell one more time (2nd click). And here it is – no actions. Cell becomes selected but grid does not jump to the header.
- But when you click one more time on a cell (3d click) – it jumps up.
You must be logged in to reply to this topic.