-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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
Hi Simon,
thanks, I'll try to extend the sel.js (ZK 3.6).
Asked: 2010-08-18 04:00:32 +0800
Seen: 713 times
Last updated: Aug 18 '10