-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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
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!
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
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?
Hey Felipe which version of ZK are you using?
Hello, I'm using ZK 3.6.4
Have you altered the style like Jumper suggests in http://sourceforge.net/tracker/?func=detail&aid=2859921&group_id=152762&atid=785191?
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
Thanks Felipe,
Let me know how it works out!
Asked: 2009-09-16 08:01:38 +0800
Seen: 989 times
Last updated: Apr 18 '10