0


我有由一些按钮组成的 expandoPane。当我在项目中执行其他操作然后展开此 expandoPane 时,它​​的内容会被隐藏,并且在仅使用拆分器调整其大小后这些内容是可见的。

我想解决这个问题。你知道为什么内容不可见吗?

4

2 回答 2

0

您需要在内容窗格显示时调用 .startup 和 .resize() 。

就像是:

expandoPane.connect(this, "onClick", function() {
    that.createContent();
    that.startup();
    that.container.resize()
});

发布您的代码,我可能会为您提供更具体的内容。

于 2011-07-21T16:42:33.020 回答
0

添加示例代码:

  <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>        

当我在几次操作后展开扩展窗格时,按钮和内容窗格变得不可见。

于 2011-07-26T07:31:47.710 回答