开发者

How to have a panel take up the whole page?

How would I modify this snippet from the tutorial

Ext.get(document.body).update('<div id="test"></div>');
new Ext.Panel({
    renderTo: 'test',
    width: '200px',
    t开发者_运维技巧itle: 'My Title',
    html: 'My HTML content',
});

so that the example panel took up all available space?


new Ext.Viewport({
    layout: 'fit',
    items: [{
        title: 'My Title',
        html: 'My HTML content'
    }]
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜