0

modal/overlapped window in modal/overlapped window disappears behind background

asked 2009-09-16 08:01:38 +0800

timo18146 gravatar image timo18146
189

updated 2009-09-16 08:02:18 +0800

hi,
please try this code and try to move the inner second window out of the first one (or half). what can I do to let the second window not disappear behind the background? I tried with zindex, but no way.. Is there a solution? I have a generic upload-dialog with preview-function which opens bigger modal preview-window in smaller wizzard-dialog which cannot be embedded.

<window width="200px" height="200px"  title="My First Window" mode="modal" closable="true" border="normal">
mytext in first window
<window width="150px" height="150px" title="My second  Window" mode="overlapped" closable="true" border="normal">
mytext in second window that should be always ontop of the first one and NOT disappear behind the background of firstwin..
</window>
</window>


thanks,
Timo Goetze

delete flag offensive retag edit

9 Replies

Sort by » oldest newest

answered 2009-09-16 09:49:28 +0800

timo18146 gravatar image timo18146
189

further testing with changing z-index programatically and inspecting with firebug shows somehow unexpected behaviour.

<window width="200px" height="200px" zindex="10" title="My First Window" mode="modal" closable="true" border="normal">
mytext in first window
<window id="previewwin" width="150px" height="150px" zindex="95" title="My second  Window" mode="overlapped" closable="true" border="normal">
mytext in second window that should be always ontop of the first one and NOT disappear behind the background of firstwin..
<button label="+1" onClick='previewwin.setZindex(previewwin.getZindex()+1); System.out.println("set to " + previewwin.getZindex());'/>
<button label="-1" onClick='previewwin.setZindex(previewwin.getZindex()-1); System.out.println("set to " + previewwin.getZindex());'/>
</window>
</window>


if you increase zindex of inner window out window container div is always set higher than inner window..

is it possible that there indeed is a bug? ..or am I missunderstanding the concept there?

please help. this is really important to me..

thanks

Timo Götze

link publish delete flag offensive edit

answered 2009-09-16 11:26:54 +0800

timo18146 gravatar image timo18146
189

updated 2009-09-16 11:33:34 +0800

further testing makes it feel to me that it is a bug with no workaround.. I filed it at SF as bug with screenshot of real scenario.

https://sourceforge.net/tracker/?func=detail&aid=2859921&group_id=152762&atid=785191

any further ideas are very welcome.

Thank you!

link publish delete flag offensive edit

answered 2009-09-21 15:34:35 +0800

timo18146 gravatar image timo18146
189

updated 2009-09-21 15:35:53 +0800

let me note that I found at least a workaround.

if you programatically add the modal windows, then attaching the new "inner" modal window to HtmlMacroComponent instead of the window or one of its children leads to the wanted behaviour. So the setting the inner modal window to the same parent as the "father" helps.

But in in plain zul I could not find any solution for this problem.

...but it would be very cool if this bug could be fixed soon.

Timo

link publish delete flag offensive edit

answered 2010-04-05 09:00:39 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

I'm having this problem too. I use overlapped windows to show some errors that the user must fix, but when my form is in modal instead of showing the overlapped windows with the errors both windows (form modal and overladpped errors) disappear. Will it be fixed?

link publish delete flag offensive edit

answered 2010-04-08 01:16:15 +0800

tmillsclare gravatar image tmillsclare
799 2 5 30

Hey Felipe which version of ZK are you using?

link publish delete flag offensive edit

answered 2010-04-08 06:08:09 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

Hello, I'm using ZK 3.6.4

link publish delete flag offensive edit

answered 2010-04-13 20:29:25 +0800

tmillsclare gravatar image tmillsclare
799 2 5 30

Have you altered the style like Jumper suggests in http://sourceforge.net/tracker/?func=detail&aid=2859921&group_id=152762&atid=785191?

link publish delete flag offensive edit

answered 2010-04-14 06:15:10 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

No, I change the way the information was getting showed (another modal window) to add the component inside the already opened parent modal window. Next time I need it I'll try this.

Thanks

link publish delete flag offensive edit

answered 2010-04-18 22:49:48 +0800

tmillsclare gravatar image tmillsclare
799 2 5 30

Thanks Felipe,

Let me know how it works out!

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: 2009-09-16 08:01:38 +0800

Seen: 989 times

Last updated: Apr 18 '10

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