87,904
社区成员
发帖
与我相关
我的任务
分享
Ext.EventManager.onWindowResize(function () {
grid.getView().refresh()
})
var containerId = Ext.get(grid.renderTo || grid.applyTo).id;
if (Ext.isIE) {
Ext.get(containerId).on("resize", function () {
Ext.defer(grid.setWidth, 100, grid, [Ext.get(containerId).getWidth()]);
});
} else {
window.onresize = function () {
grid.setWidth(Ext.get(containerId).getWidth());
}
}