PDA

View Full Version : Locked column with multi level columns doesn't size correctly



ZachG
11 Aug 2011, 3:13 PM
REQUIRED INFORMATION




Ext version tested:

Ext 4.0.2a


Browser versions tested against:

Chrome 13


Description:

I have a grid with a locked column and another column that is two levels. The locked column's height isn't the same as my multi level column, so the rows are offset.


Steps to reproduce the problem:

Run the code below


The result that was expected:

The height of the locked column will be the height as the multi level columns.


The result that occurs instead:

The height of the locked column is only the height of the first column.


Test Case:




Ext.onReady(function() {
Ext.define("MyModel", {
extend:"Ext.data.Model",
fields:["locked", "level"]
});


Ext.create("Ext.window.Window", {
width:500,
height:500,
layout:"fit",
items:[
{
xtype:"gridpanel",
store:{
proxy:{
type:"memory",
reader:{
type:"json"
}
},
model:"MyModel"
},
columns:[
{
text:"Locked",
locked:true,
dataIndex:"locked",
width:100
},
{
text:"First Level",
items:[
{
text:"Second Level",
width:100,
dataIndex:"level"
}
]
}
],
listeners:{
afterrender:function() {
this.store.loadData([
{
locked:1,
level:1
},
{
locked:2,
level:2
},
{
locked:3,
level:3
},
{
locked:4,
level:4
}
]);
}
}
}
]
}).show();
});