开发者

Set Extjs Panel's Height (Layout) After It's Child items taken their height

开发者 https://www.devze.com 2023-02-25 18:47 出处:网络
How can we recalculate the Extjs-4 Panel\'s Height After it\'s Child items like Grid (Which have auto height) takes 开发者_C百科their height. Use autoHeight with Panel and GridPanel. Then catch the re

How can we recalculate the Extjs-4 Panel's Height After it's Child items like Grid (Which have auto height) takes 开发者_C百科their height.


Use autoHeight with Panel and GridPanel. Then catch the resize event of GridPanel to force Panel to layout :

    var grid = new Ext.grid.GridPanel({

    listeners: {
        'resize': function () {
            var panel = Ext.getCmp('panel');
            panel.doLayout();
        }
    }
}),
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号