Hybrid View
-
15 Dec 2011 11:29 PM #1
grid layout bug - with forceFit:true AND rownumberer maxWidth < 40
grid layout bug - with forceFit:true AND rownumberer maxWidth < 40
BUG: when rownumberer maxWidth is less than 40 (20 in this case) grid layout is bugged. Columns dont match headres.
TO REPRODUCE:
- goto : http://docs.sencha.com/ext-js/4-0/#
- open firebug (firefox/chrome)
- paste following code in the console
- run it
- TADA!
extjs4BUG.jpg
Code:Ext.create('Ext.Window',{ autoShow:true, width:700, autoDestroy:true, height:500, layout:'fit', items:[{ xtype:'gridpanel', forceFit:true, store:Ext.create('Ext.data.Store',{ data:[{name:'a',group:2,id:1},{name:'b',group:1,id:2},{name:'c',group:2,id:3},{name:'d',group:1,id:4}], remoteSort:true,groupField:'group',fields:['id','name','group'] }), features:[Ext.create('Ext.grid.feature.Grouping', {})], plugins:[Ext.create('Ext.grid.plugin.CellEditing', {})], columns:[{xtype:'rownumberer',maxWidth:20},{dataIndex:'id',editor:{xtype:'textfield'}},{dataIndex:'name',editor:{xtype:'textfield'}},{dataIndex:'group',editor:{xtype:'textfield'}}] }] });Last edited by Webtel; 16 Dec 2011 at 12:09 AM. Reason: rethinking of reality
-
16 Dec 2011 3:21 AM #2
Can't confirm this using 4.1. See attached.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
16 Dec 2011 3:36 AM #3
-
16 Dec 2011 3:47 AM #4
Yes, can confirm that, which means it will be fixed for the next release.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote
