[英]Extjs: Resize panel in Viewport when browser window is resizes
I have a panel: 我有一个小组:
var myPanel = Ext.form.Panel({ width : 400, height : '50%', ... } // for center panel on screen
items : [{
xtype : 'component',
html : <add image>
This panel is inside Viewport: 该面板位于视口中:
Ext.create('Ext.container.Viewport', {
layout : 'ux.center',
items : [form]
});
Problem: When I resize the browser window, the panel becomes a cropped height 问题:当我调整浏览器窗口的大小时,面板变成裁剪的高度
How can I do so that the height varied as in rubber layout ? 如何使高度像橡胶布局中那样变化?
对视口使用“ vbox”布局和正确的layoutConfig(pack:居中,align:居中),并且调整大小应正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.