我有一个 GridPanel,但是,如您所见,第一列(即locked
)没有像其他列一样对齐。
这是一个错误,还是我做错了什么?
编辑:以下是有关列的一些片段:
initComponent: function(){
this.renderTo = this.divId;
this.status = "normal";
Ext.Array.insert(this.columns,0,this.cols);
this.columns = this.cols;
this.callParent();
}
cols
对象看起来像这样:
for(var i in params){
if(i != config.staticColumn)
cols.push({header: headers[i], dataIndex: i});
else{
cols.push({header: headers[i], dataIndex: i, locked: true});
}
}
这个空间实际上是:
<div id="gridview-1323-spacer" style="height: 17px"></div>
我不知道这意味着什么或为什么首先创建它。