-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I don't know if this is a bug or a behavior.
here is how to proceed (test in zkdemo):
1) click on the left arrow to collapse/close west
2) click in the west (but not in the arrow), to open west, but not to fix west in view
3) click the close button and nothing happens.
if the button is outside west it works.
is a bug or a behavior?
if is a behavior how to work this around?
<borderlayout height="500px"> <west title="West" size="25%" flex="true" maxsize="250" splittable="true" collapsible="true" id="west"> <div style="background:#B8D335"> <label value="25%" style="color:white;font-size:50px" /> <button label="close" onClick="west.setOpen(false)"/> </div> </west> <center border="none" flex="true"> <div style="background:#E6D92C"> <label value="25%" style="color:white;font-size:50px" /> </div> </center> <east size="50%" border="none" flex="true"> <label value="Here is a non-border" style="color:gray;font-size:30px" /> </east> </borderlayout>
Thank you,
/Madruga
This is not a bug.
west.setOpen(false) is used to collapse the west region by program which you have already done so in 1).
step 2) makes the west region to "slide out". If you want to make it "slide in", you can try moving the focus away from the west region.
Hello Henri,
I imagined that was not a bug.
However I tried as you told, changing the focus to an element outside the west region, and the west did not "slide in".
This fit for a feature?
Well, this is not a essential need, is more to a minor enhancement.
Thank you,
Madruga
hi ggw, i have tried the trick, The Clients.evalJavascript .... to slideOut the west component,
unfortunatelly it doesn't work, the west component doesn't slideOut..
please help, is '.click()' is the correct js method?
Asked: 2008-11-07 19:47:55 +0800
Seen: 392 times
Last updated: May 27 '16