Extjs如果Ext.panel.panel的collapsed=true,则展开的宽度不合适

Extjs if collapsed = true for Ext.panel.panel then expand is not taking proper width

本文关键字:panel 不合适 true Ext 如果 collapsed Extjs      更新时间:2023-09-26

我使用的是Extjs 5.1.0版本,我有两个面板面板1和面板2,第一个面板应该是可折叠的,如果面板1折叠,第二个面板应该展开。

默认情况下,Panel1应折叠,

collapsed: true

它加载正常,但当我展开Panel1时,它的宽度不合适。您可以在下面的中观察行为

此处编码

提前感谢

您可以为面板1指定宽度或者您可以在面板1上编写一个监听器,以便在渲染后将其折叠。请参阅此处的工作示例