-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, i have a problem with borderlayout.
the onOpen event only be fired when the user clicked in the > < icon, when clicked in the bar nothing happens.
Maybe I need to report as bug?
Hi,
according to "onOpen" event description:
Description: When a layout is collapsed or opened by a user, the onOpen event is sent to the application.
Since only clicking ">" (arrow icon) will collapse the layout instead of clicking the title bar, I think it's not a bug.
Yes, I think it's not a bug (is a lack of a method) but in my case in would like to detach the "west" when the user collapse the layout and appendChild when the user opened the layout so when the user clicked in the bar nothing happens (no event) i lost the control in the layout.
maybe i need a method to disable this "feature" .
Hi,
I don't understand very clearly. Do you mean disable "collapse" feature?
Hi,
You said you need "collapse only when the user press the button < and open only when press >". It's exactly the current behavior, isn't it? You just mentioned that clicking title bar doesn't collapse the "west" area. The current behavior supposes to fulfill your need. I don't get it.
No, look the demo
http://www.zkoss.org/zkdemo/layout/border_layout
West have a button in the title bar <, when you click the button the west collapse (onOpen event) and appears a "bar".
If you click the button again > , the West open and sends onOpen event but if you click in the "bar" only open the West without event and i lost the control.
PD: > and < represents the button in the tittle bar.
Thanks for the help anyway
Hi,
I found that if you click the "bar", west area is not really open. It just shows up. Because you can't adjust its width (no splitter), Only when clicking the image ">", it actually open. You can see the splitter now.
I think that's why clicking the bar doesn't fire onOpen event.
i am trying to develop an app for mobile devices so when the user collapse the west , i need to detach the content of the client (because zk runs too slow in mobile devices). I tried this and works fine but when the user click the "bar" i lost the control.
'll try with another framework better, thanks
Asked: 2011-11-14 20:08:32 +0800
Seen: 345 times
Last updated: Dec 22 '11