ExtJS 4.1 GridPanel错位列

问题描述:

我有一个GridPanel,但是,正如您所看到的,第一列(为locked)与其他列没有对齐.

I have a GridPanel, but, as you can see, the first column(which is locked) is not aligned like the other ones.

是错误,还是我做错了什么?

Is it a bug, or am I doing something wrong?

编辑:以下是有关这些列的摘要:

Here are some snippets regarding the columns:

 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>

我不知道这是什么意思,或者为什么首先要创建它.

I don't know what this means or why it gets created in the first place.

这是ExtJS的问题(和其他一些问题一样).我已经在他们的论坛上寻求支持,但是没有提供足够有用的答案(我最近一次查看-大约一年之前,仍然没有答案).

This was an issue with ExtJS(like a few others). I have asked for support on their forum, but no answer was provided fast enough to be useful(the last time I checked - maybe a year or so ago there was still no answer).

同时,我已经停止使用此框架,也没有检查其他修复程序.

In the meantime I have stopped working with this framework and have not checked for another fix.