-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I have a listbox which is generate in this window
<window id="window" sizable="true" minwidth="1000" hflex="1" height="100%" width="100%"> </window>
when i change the width of my browser (firefox) then my listbox change the width too because of hflex="1". but at 1000 px i don't want that the listbox change the width. but minwidth does not work. and i don't get a horizontal scrollbar. please help.
I think you have to dynamically react on resize.
http://books.zkoss.org/wiki/ZKDeveloper%27sReference/UIPatterns/BrowserInformationandControl
onClientInfo Event is triggered, if the there is a resize.
To retrieve the information about the client, you can register an event listener for the onClientInfo event to a root component.
Notice that the onClientInfo event is sent from the client after the UI is rendered at the client so you will NOT trigger this event by resizing
chillworld ( 2014-03-12 14:58:59 +0800 )editjust take a look here :
http://books.zkoss.org/wiki/ZKDeveloper'sReference/UIPatterns/HflexandVflex#ComponentheightwithinHlayout.2FHboxusingminimum_vflex
summary : don't use minwith but with="1000px" and vflex="min"
Greetz chill.
Asked: 2014-03-12 08:50:49 +0800
Seen: 55 times
Last updated: Mar 12 '14
I don't get your Problem. You want to resize the window & listbox until 1000px window width and <1000px it should be a scrollbar visible?
IngoB ( 2014-03-12 10:17:40 +0800 )editi need a limit for hflex="1" and i thought minwidth should be the solution. yes i want to resize the browser ... you got my problem!
salbader ( 2014-03-12 10:30:04 +0800 )edit