0

modal window action property not working from drop event

asked 2014-12-03 16:33:21 +0800

robertkaren gravatar image robertkaren
77 7

updated 2014-12-03 16:35:35 +0800

I am trying to implement a modal window with action property (e.g. hide:slideup) similar to the demo http://www.zkoss.org/zkdemo/window/modal_dialog where you create a window with :

Window win = (Window)Executions.createComponents(zul, null, null);
win.doModal();

and close it from the modal win's controller calling window.detach(); The modal window begins

<window id="modalDialog" title="Select Operator" border="normal" width="320px"
    apply="com.namsi.eztab.services.AndOrPlusModalController"
    position="center,center" closable="true"
    action="show: slideDown;hide: slideUp">

It doesn't do the show or hide effects. When I detach() it sometimes I see the window detach w/o the hide action and immediately reappear on the bottom right of the screen where it does the slideup action. Could these problems be happening because I'm calling the modal from a drop event?

I tried substituting the code from that demo into my app and it behaved the same way that my window did.

Thanks for any help!!

delete flag offensive retag edit
Be the first one to answer this question!
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
1 follower

RSS

Stats

Asked: 2014-12-03 16:33:21 +0800

Seen: 9 times

Last updated: Dec 03 '14

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