ExtJS 4.1 GridPanel错位列 [英] ExtJS 4.1 GridPanel missplaced column

查看:353
本文介绍了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.

这篇关于ExtJS 4.1 GridPanel错位列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆