选项卡面板最终为空白

时间:2014-05-29 12:54:07

标签: zk

使用ZK框架,无论我做什么,这个tabpanel都不会显示自己,最后只是空白。

<window id="indexwin" height="100%" width="100%" visible="true">


    <style src="/css/itb.css" />

    <hlayout width="100%" style="padding-right: 3px; text-align: right; overflow: auto" valign="middle">

        <div width="260px" style="margin-right: 9px; padding-top: 6px; padding-bottom: 6px">
            <button label="Logout" id="logout" sclass="logout-button"/>
        </div>
    </hlayout>

    <tabbox width="99%" height="76%" style="margin:12px;">
        <tabs>
            <tab label="Anomalies" id="anomaliesTab"/>
        </tabs>
        <tabpanels>
            <tabpanel id="anomalysearchpanel" style="background-color: #ffffff" >
                <panel border="none">
                    <panelchildren>
                        <borderlayout width="100%" height="100%">
                            <west hflex="1" title="Search....

我以前有过嵌套(包含)的窗户很好,但是可折叠的面板没有工作,所以我试图改变。是否需要添加任何进一步的信息

1 个答案:

答案 0 :(得分:1)

进行了一些研究,

您的代码是正确的,但我怀疑是一个错误。

<window id="indexwin" height="100%" width="100%" visible="true">
    <hlayout width="100%" style="padding-right: 3px; text-align: right; overflow: auto" valign="middle">
        <div width="260px" style="margin-right: 9px; padding-top: 6px; padding-bottom: 6px">
            <button label="Logout" id="logout" sclass="logout-button"/>
        </div>
    </hlayout>

    <tabbox width="99%" height="76%" style="margin:12px;">
        <tabs>
            <tab label="Anomalies" id="anomaliesTab"/>
        </tabs>
        <tabpanels>
            <tabpanel id="anomalysearchpanel" >
                <panel collapsible="true" tiltle=" ">
                    <panelchildren>
                      <label value="hey chillworld"/>
                  </panelchildren>
              </panel>
          </tabpanel>
      </tabpanels>
  </tabbox>
</window>

标题处不是普通空格,而是计为字符的空格(alt gr + 255) 我需要这样做,因为面板标题仅在设置标题时可见(普通空间不起作用)。

this fiddle中的示例。

如果您怀疑还有错误,可以在zk上创建问题跟踪器。
包括小提琴并提及没有标题集的差异。

相关问题