Menu

#2083 tabs & tabpanels cut half width if set hflex="1"

5.0.2
closed-fixed
nobody
5
2010-06-11
2010-06-11
Henri Chen
No

Tabs/Tab and Tabpanels/Tabpanel shall be the same width and height as of its parent Tabbox. ZK hflex/vflex layout engine shall ignore hflex/vflex setting automatically.

test case
----
<window xmlns:html="http://www.w3.org/1999/xhtml" width="100%" height="100%">
<vbox hflex="1" vflex="1">
<tabbox hflex="1" vflex="1">
<tabs hflex="1" vflex="1">
<tab label="All Editions" visible="true" hflex="1" vflex="1"/>
<tab label="Tab 2" visible="true" hflex="1" vflex="1"/>
</tabs>
<tabpanels hflex="1" vflex="1">
<tabpanel hflex="1" vflex="1">
<vbox hflex="1" vflex="1">
<vbox hflex="1" style="border: 1px solid #999999">
Level1box
</vbox>
<separator hflex="1" />
<vbox hflex="1" style=" border: 1px solid #999999" vflex="1">
<listbox hflex="1" vflex="1">
<listhead sizable="true">
<listheader width="125px" label="Id1" />
<listheader width="125px" label="Id2" />
<listheader width="125px" label="Id3" />
<listheader width="125px" label="Id4" />
</listhead>
<listitem height="20px">
<listcell label="label1" />
<listcell label="label2" />
<listcell label="label3" />
<listcell label="label4" />
</listitem>
</listbox>
<paging pageSize="20" />
</vbox>
</vbox>
</tabpanel>
<tabpanel hflex="1" vflex="1">
Panel 2
</tabpanel>
</tabpanels>
</tabbox>
</vbox>
</window>

Discussion

  • Henri Chen

    Henri Chen - 2010-06-11

    North/South/West/East/Center of the Borderlayout has the similar issue.

     
  • Henri Chen

    Henri Chen - 2010-06-11
    • status: open --> closed-fixed
     
  • Henri Chen

    Henri Chen - 2010-06-11

    Fixed since June 11, 2010.

     

Log in to post a comment.