-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi!
I'm not sure if it's a bug or a feature, but if I don't add the "hflex=1" to the second and third column, the columns title width doesn't fixes with the table content width, there's a discordance.
<zk>
<window id="mytest" border="normal" width="500px" xmlns:c="client"
>
<tabbox vflex="1" >
<tabs>
<tab label="A" />
</tabs>
<tabpanels vflex="1">
<tabpanel >
<tree vflex="1" >
<treecols>
<treecol label="1" hflex="2"/>
<treecol label="2" />
<treecol label="3" hflex="1"/>
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell label="Item 1"/>
<treecell label="Item 1 description"/>
<treecell label="Item 1 description"/>
</treerow>
</treeitem>
<treeitem>
<treerow>
<treecell label="Item 2"/>
<treecell label="Item 2 description"/>
<treecell label="Item 1 description"/>
</treerow>
<treechildren>
<treeitem>
<treerow>
<treecell label="Item 2.1"/>
<treecell label="Item 1 description"/>
</treerow>
<treechildren>
<treeitem>
<treerow>
<treecell label="Item 2.1.1"/>
<treecell label="Item 1 description"/>
</treerow>
</treeitem>
<treeitem>
<treerow>
<treecell label="Item 2.1.2"/>
<treecell label="Item 1 description"/>
</treerow>
</treeitem>
</treechildren>
</treeitem>
<treeitem>
<treerow>
<treecell label="Item 2.2"/>
<treecell label="Item 2.2 is something who cares"/>
<treecell label="Item 1 description"/>
</treerow>
</treeitem>
</treechildren>
</treeitem>
<treeitem label="Item 3"/>
</treechildren>
</tree>
</tabpanel>
</tabpanels>
</tabbox>
</window>
</zk>
Regards,
Vicent
The bug has fixed, please use ZK 6.5.2-FL version to give it a try.
Asked: 2013-02-01 12:25:17 +0800
Seen: 59 times
Last updated: Feb 27 '13
I could not see that discordance, look at fiddle ZKFiddle-Link
mhj ( 2013-02-01 15:07:00 +0800 )editHi, if you modify your ZUL file, removing the two "hflex=25", it shows wrong column design in Internet Explorer, but it shows good in Google Chrome. Is it mandatory to put the hflex attribute on all treecols?
cocoes ( 2013-02-04 08:50:11 +0800 )editPlease post this to ZK Bug http://tracker.zkoss.org">tracker.
jumperchen ( 2013-02-05 06:35:55 +0800 )editHi jumperchen, I've tryed to do it right now, but our firewall doesn't allow us to send forms due to a security policy :-( .
cocoes ( 2013-02-05 11:49:13 +0800 )editOK, I will help you to post that later.
jumperchen ( 2013-02-26 11:07:13 +0800 )edit