0

Tree columns width not expanding if scrollbar without hflex

asked 2013-02-01 12:25:17 +0800

cocoes gravatar image cocoes flag of Spain
94 6

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

delete flag offensive retag edit

Comments

I could not see that discordance, look at fiddle ZKFiddle-Link

mhj ( 2013-02-01 15:07:00 +0800 )edit

Hi, 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 )edit

Please post this to ZK Bug http://tracker.zkoss.org">tracker.

jumperchen ( 2013-02-05 06:35:55 +0800 )edit

Hi 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 )edit

OK, I will help you to post that later.

jumperchen ( 2013-02-26 11:07:13 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-02-27 06:08:06 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

The bug has fixed, please use ZK 6.5.2-FL version to give it a try.

link publish delete flag offensive edit

Comments

Hi jumperchen, many thanks. Where can I get that version?

cocoes ( 2013-02-27 09:45:42 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-02-01 12:25:17 +0800

Seen: 59 times

Last updated: Feb 27 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More