1

can't close west borderlayout

asked 2008-11-07 19:47:55 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

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

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2008-11-10 03:28:11 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

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.

link publish delete flag offensive edit

answered 2008-11-10 12:35:56 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

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

link publish delete flag offensive edit

answered 2008-11-11 00:38:33 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Well, seems only a "user click" on other part will do the trick. You can post this to feature request so we can track it. Thanks.

link publish delete flag offensive edit

answered 2012-06-21 12:59:42 +0800

GGW gravatar image GGW
84 1

Yes, I wish to be able to do "slide in" in java, something like west.setSlideout(false). Is it possible now with ZK6? Thanks.

link publish delete flag offensive edit

answered 2012-06-21 14:41:10 +0800

GGW gravatar image GGW
84 1

well, it seems that the following js can do the trick:

Clients.evalJavaScript("jq('$index_west').click()");

where index_west the id of the west component.

link publish delete flag offensive edit

answered 2014-01-08 16:26:58 +0800

aktejo gravatar image aktejo
155 3

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?

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: 2008-11-07 19:47:55 +0800

Seen: 392 times

Last updated: May 27 '16

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