-
31 Oct 2012 2:17 PM #1
[4.1.x] IE: Selecting item in Ext.view.View when scrolled down makes scrollbar jump
[4.1.x] IE: Selecting item in Ext.view.View when scrolled down makes scrollbar jump
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1
- Ext 4.1.3
- IE8
- IE9
- HTML5
- In IE, if I select an item in an Ext.view.View when it's scrolled down, the scroll bar jumps to the top. This is not a problem in Firefox or Google Chrome.
- Run the code in the test case (or check out the live preview in the Ext.view.View documentation)
- Resize the browser so that the view has to scroll
- Scroll down and select one of the items in the view
- The scrollbar should not have jumped up - it should have stayed in place
- The scrollbar jumped to the top
Code:Ext.define('Image', { extend: 'Ext.data.Model', fields: [ { name:'src', type:'string' }, { name:'caption', type:'string' } ] }); Ext.create('Ext.data.Store', { id:'imagesStore', model: 'Image', data: [ { src:'http://www.sencha.com/img/20110215-feat-drawing.png', caption:'Drawing & Charts' }, { src:'http://www.sencha.com/img/20110215-feat-data.png', caption:'Advanced Data' }, { src:'http://www.sencha.com/img/20110215-feat-html5.png', caption:'Overhauled Theme' }, { src:'http://www.sencha.com/img/20110215-feat-perf.png', caption:'Performance Tuned' } ] }); var imageTpl = new Ext.XTemplate( '<tpl for=".">', '<div style="margin-bottom: 10px;" class="thumb-wrap">', '<img src="{src}" />', '<br/><span>{caption}</span>', '</div>', '</tpl>' ); Ext.create('Ext.view.View', { store: Ext.data.StoreManager.lookup('imagesStore'), tpl: imageTpl, itemSelector: 'div.thumb-wrap', emptyText: 'No images available', renderTo: Ext.getBody() });
HELPFUL INFORMATION
See this URL for live test case: http://docs.sencha.com/ext-js/#!/api/Ext.view.View - view the live preview of the example
Debugging already done:- none
- not provided
- only default ext-all.css
- Windows 7 SP1 64-bit
-
1 Nov 2012 5:50 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Thank you for the report.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
You found a bug! We've classified it as
EXTJSIV-7654
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote