Unanswered: Rid of scrolling when selecting an item in Ext.grid.Panel
Unanswered: Rid of scrolling when selecting an item in Ext.grid.Panel
Is it possible to rid of page scrolling when I click an item in grid? It happens when input focus is outside grid, I click an item, and then it scrolls trying to align selected item closer to the center of the screen. (Page height has to be less then height of the grid).
I'm not sure, maybe it's a feature ), maybe grid tries to move the item in the center of the screen to focus user's attention. But this behavior isn't desirable for us, because after clicking on item, selected item is no longer located under the pointer of the mouse and user has to find it again. That's why I want to disable this behavior.
Yes, it's easy to reproduce on Basic Array Grid example. To reproduce you need repeat following steps:
Resize browser to make grid's height larger than window's height: before.jpg
Then press "AT&T Inc." item. The page automatically scrolls down, and you see this picture:after.jpg
Unfortunately, you can't see mouse pointer in these pictures but in the first one it's located right over "AT&T Inc." item and in the second one - right over "Hewlett-Packard Co." (you can see gray-color highlighting).