我有由一些按钮组成的 expandoPane。当我在项目中执行其他操作然后展开此 expandoPane 时,它的内容会被隐藏,并且在仅使用拆分器调整其大小后这些内容是可见的。
我想解决这个问题。你知道为什么内容不可见吗?
您需要在内容窗格显示时调用 .startup 和 .resize() 。
就像是:
expandoPane.connect(this, "onClick", function() {
that.createContent();
that.startup();
that.container.resize()
});
发布您的代码,我可能会为您提供更具体的内容。
添加示例代码:
<div id="expandableConsole" dojoType="dojox.layout.ExpandoPane" region="bottom" showTitle='true' maxHeight="250px" maxWidth="280px" style="height:200px; width:100%;" doLayout='true' startExpanded='false' splitter="true">
<div>
<input type="button" id="btnSubmit" style="width:88px;height:20px" onclick="update()">
</div>
<div dojoType="dijit.layout.ContentPane" id="infoBar" style="height:150px">
</div>
</div>
当我在几次操作后展开扩展窗格时,按钮和内容窗格变得不可见。