0

Listbox minimum width

asked 2010-08-18 04:00:32 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hi,

I have a <listbox vflex="false" fixedLayout="true">. The listbox shrinks or expands it's width according to the browser window. It's very nice. Just when the browser window is too small, some columns are hidden. It it possible to specify somehow the minimum width of the listbox, so as it would not shrink less then such minwidth?

I know I can specify width="..." for the whole listbox, but then the listbox is not shrinking and expanding. Maybe I can listen the onClientInfo event and set the width of the listbox just when the screen is too small. But it's a little bit heavy handed solution, especially when the listbox is inside some layout (borderlayout) component.

Thanks
Andy

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-08-18 05:12:24 +0800

SimonPai gravatar image SimonPai
1696 1

Hi Andy,

Are you using 3.6.4?
You may need to override some javascript methods in zk listbox widget.
I quickly traced the code, it looks like the minimum width is given by _calcSize() in SelectWidget.js (ZK5) or sel.js (ZK 3.6).
I haven't got any further conclusion yet, but I hope this piece of information is helpful.

Regards,
Simon

link publish delete flag offensive edit

answered 2010-08-18 05:51:44 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hi Simon,
thanks, I'll try to extend the sel.js (ZK 3.6).

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-08-18 04:00:32 +0800

Seen: 713 times

Last updated: Aug 18 '10

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