-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window zIndex issues #690
Comments
The z-index is calculated every time a modal or a pop-up is opened, it has an initial value of 1040 and increment by 10 every time a a modal is open, and decrement by same amount when a modal is closed, the modal backdrop will follow the most recent opened modal. |
Seems that way in ModalDialog, but not in Window. It's not setting the z-index at all from what I can tell. Also.. the backdrop is weird if there are multiple modals. (probably a separate ticket). If I have a modal Window showing, and then I have a 'help' button that displays a ModalDialog with some help text, the ModalBackdrop goes in front of the Window, but when the help text modal closes, the ModalBackdrop is staying in front of the Window. |
Doing a bit more looking into the domino code, and i don't believe it has anything to do with Window (directly) per-se. This happens with any subclass of BaseModal. In I think a fix could go in one of following ways.
Another thing to note; from my initial description of the ticket, I found why setting the zindex at UI build time doesn't work. In |
I did not understand exactly how I can reproduce this, But I tried with 1 window with a button that opens a new one, both are set as modal, when I open the first one then open the second one, the modal back drop moves in-front of the first one and behind the 2nd window, when I close the second window it goes back behind the first window, now setting the z-index manually will cause the issue of the window show up behind the backdrop, added a configuration to set the initial z-index and when I set it to 1000 instead of setting it in the window directly it worked. Not sure if this is enough or not? |
All z-index management is now moved to the new class ZIndexManager which has a default implementation that will always increment and never decrement the z-index, the initial value and the increment value for the z-index are configured using the DominoUIConfig classs, and the implementation of the ZIndexManager can be replaced also using the DominoUIConfig. |
Couple of issues found with Window and setting zIndex.
Trying to set the zIndex during UI building doesn't appear to work.
It doesn't appear to be setting it at all.
For a work-around, I ended up adding an open handler
However, separate/similar issue, since the window is modal, and I'm setting the zindex on the window, the modal backdrop ends up being on top of the Window, thus not allowing any interaction with the window.
The text was updated successfully, but these errors were encountered: