PDA

View Full Version : Rid of scrolling when selecting an item in Ext.grid.Panel



masm
12 Apr 2012, 2:37 AM
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).

scottmartin
12 Apr 2012, 6:11 AM
Are you asking if this is possible, or are you reporting a possible bug?

Regards,
Scott.

masm
12 Apr 2012, 6:26 AM
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.

scottmartin
12 Apr 2012, 6:38 AM
Can this be replicated on one of our online grid examples?
Steps to replicate using the example would be helpful as well.

Scott.

masm
12 Apr 2012, 7:33 AM
Yes, it's easy to reproduce on Basic Array Grid (http://docs.sencha.com/ext-js/4-0/#!/example/grid/array-grid.html) example. To reproduce you need repeat following steps:
Resize browser to make grid's height larger than window's height: 33930
Then press "AT&T Inc." item. The page automatically scrolls down, and you see this picture:33931
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).

scottmartin
12 Apr 2012, 8:14 AM
Thank you for the details. This is already under review: EXTJSIV-5889 and should be addressed in a future release.

Regards,
Scott.