Home >Web Front-end >JS Tutorial >Solution to the width problem of Ext JS Grid under IE6_extjs

Solution to the width problem of Ext JS Grid under IE6_extjs

WBOY
WBOYOriginal
2016-05-16 18:56:071090browse

Solution:
1. Modify ext-all.css, find .x-grid3-header-offset, and modify it to .x-grid3-header-offset{padding-left:1px;/*width:10000px;*/ width:auto;}
2. Add the following code to the grid:

Copy the code The code is as follows:

monitorResize: true,
doLayout: function() {
this.setSize(Ext.get(this.getEl().dom.parentNode).getSize(true));
Ext .grid.GridPanel.prototype.doLayout.call(this);
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn