PDA

View Full Version : ListView scrolls back to top on selecting bottom items (GXT 2.2.5)...



nrajeshc
12 Feb 2013, 3:24 PM
I have a ListView with custom template attached to a ContentPanel which has FitLayout. ContentPanel has scrollmode set to autoy. On IE, if user scrolls down on listview and select a bottom item, the scrollbar snaps back to the top, hence user looses the selection. This is a major issue for us and its blocking our release.

I found a similar issue reported in this link but the posted remedy is not working for us and we are not planning to
move to GXT 3.0 anytime soon.
http://www.sencha.com/forum/showthread.php?131629-GXT-ListView-in-TabPanel-IE-scrolling-bug

How can I disable the scroll event on select ? Any help is highly appreciated.

Colin Alworth
12 Feb 2013, 5:01 PM
Did you try the workaround Sven posted? Did it work?

If that doesn't work in your specific case, can you share a sample that describes your situation so a similar workaround can be suggested for you?

nrajeshc
12 Feb 2013, 6:30 PM
Yes, I tried the workaround sven suggested but didn't work.

Infact, you can reproduce the same scenario on Sencha's 2.2.6 explorer demo (see link below). Open it on IE9, reduce the browser height until you see the vertical scrollbar in the list view. Now you scroll down and click on one of the bottom list item. The scrollbar will snap back to top.

http://www.sencha.com/examples-2/#listview

I have the same issue as you have in your demo.

nrajeshc
14 Feb 2013, 10:44 AM
Any pointers?