简体   繁体   English

ExtJS 4.1 GridPanel错位列

[英]ExtJS 4.1 GridPanel missplaced column

I have a GridPanel, but, as you can see, the first column(which is locked ) is not aligned like the other ones. 我有一个GridPanel,但是,正如您所看到的,第一列(被locked )与其他列未对齐。

Is it a bug, or am I doing something wrong? 是一个错误,还是我做错了什么?

在此处输入图片说明

EDIT: 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(); 
    }

and the cols object looks like this: 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});
                }
            }

That space is actually: 该空间实际上是:

<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. 我不知道这意味着什么,或者为什么首先要创建它。

This was an issue with ExtJS(like a few others). 这是ExtJS的问题(和其他一些问题一样)。 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. 在此期间,我已经停止使用此框架,也没有检查其他修复程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM