dojo Expando窗格内容在展开时隐藏




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

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

最新更新