extjs面板在窗口调整大小时调整大小 [英] extjs panel resize while window resizes

查看:39
本文介绍了extjs面板在窗口调整大小时调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有表单"布局的面板,其中包含多个按钮.现在我想根据窗口大小调整启用此面板调整大小.我怎样才能完成这项工作?

I have a panel with a "form" layout, containing several buttons. now I want to enable this panel resize according to window resizing. How can I get this done?

谢谢.

推荐答案

您可以通过设置 'resizable' 配置选项来调整面板的大小,请参阅各种选项的文档:http://dev.sencha.com/deploy/ext-4.0.0/docs/api/Ext.panel.Panel.html.

You can make the panel resizable by setting the 'resizable' config option, see the docs for the various options: http://dev.sencha.com/deploy/ext-4.0.0/docs/api/Ext.panel.Panel.html.

至于表单组件如何交互,如果您想使用表单布局或切换到具有各种 flex 设置的 hbox/vbox 类型的设置,则需要设置锚点.

As far as how the form components interact you'll need to set anchor's if you want to use a form layout or switch to an hbox/vbox type of set-up with various flex settings.

这篇关于extjs面板在窗口调整大小时调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆