0

Borderlayout onOpen problem

asked 2011-11-14 20:08:32 +0800

zippy gravatar image zippy
504 1 2

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?

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2011-11-15 00:59:37 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

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.

link publish delete flag offensive edit

answered 2011-11-15 13:20:16 +0800

zippy gravatar image zippy
504 1 2

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" .

link publish delete flag offensive edit

answered 2011-11-16 00:54:53 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

Hi,
I don't understand very clearly. Do you mean disable "collapse" feature?

link publish delete flag offensive edit

answered 2011-11-16 14:50:14 +0800

zippy gravatar image zippy
504 1 2

No, i need to collapse only when the user press the button < and open only when press >

link publish delete flag offensive edit

answered 2011-11-17 00:47:12 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

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.

link publish delete flag offensive edit

answered 2011-11-17 03:10:22 +0800

zippy gravatar image zippy
504 1 2

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

link publish delete flag offensive edit

answered 2011-12-22 03:01:19 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

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.

link publish delete flag offensive edit

answered 2011-12-22 15:58:52 +0800

zippy gravatar image zippy
504 1 2

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

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: 2011-11-14 20:08:32 +0800

Seen: 345 times

Last updated: Dec 22 '11

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