0

Tree width lost after changing col width on maximized panel

asked 2013-04-19 10:45:16 +0800

cocoes gravatar image cocoes flag of Spain
94 6

Hi,

I'm not sure if it's a bug or it's the way it works, but if I manually change the tree column width when the Panel 1 is maximized, the column width don't adjust anymore to the panel width when the panel is "unmaximized".

Is there any way to say to the tree (capturing the ON_MAXIMIZE event if necesary) to ignore the column width change and reset it again to make use of all "hflex=1" attribute on all columns and on the tree itself, in order to occupy 100% of its container? I mean when I return the panel to the not maximized position.

Sample here: http://zkfiddle.org/sample/2r6ravm/9-Tree-don-t-expands-after-column-resize

Thanks in advance,

Vicente

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-28 09:15:56 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

You can try clear width of tree cols while onMaximize,

e.g.,

onMaximize='myinclude.getFellow("c0A").setWidth(""); myinclude.getFellow("c1A").setWidth(""); myinclude.getFellow("c2A").setWidth("");'
link publish delete flag offensive edit

Comments

Hi Ben , your colleague Jimmy produced a patch in april to fix this. Many thanks.

cocoes ( 2013-07-01 11:49:21 +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-04-19 10:45:16 +0800

Seen: 13 times

Last updated: Jun 28 '13

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