jQuery UI Widgets › Forums › Dialogs and Notifications › Window › Z-index problem with docking and multiple windows
Tagged: bringToFront, javascript window plugin, window, z-index
This topic contains 4 replies, has 2 voices, and was last updated by Makla 10 years, 4 months ago.
-
Author
-
I am playing with docking and window and can not get it to work.
I have 2 windows. When I open window1 and then close it and open window2 and then again window1, window 1 is positioned behind window2.
Watch fiddle: sequence: click: Open 1, Close 1, Open 2, Open 1 (Window1 is opened behind Window2).In next step I try to opened all windows with bringToFront, but in this case, window is opened beneath docking windows.
Watch fiddle (rerun fiddle): sequence: click: Open 1 with bring to front, Close 1, Open 2 with bring to front, Open 1 with bring to front (window 2 is set behind docking windows).This is true for Chrome 33. It works on firefox 28.
Hi Makla,
You can set the z-index of HTML element by using the following: $(“#jqxwindow1”).css(‘z-index’, 99999); where 99999 is the z-index.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comI did it, but now happened exactly what I predicted and did not try this myself.
Z-index of some (or all) widgets are incorrect. Now, menu opens behind window.
I think that it is not logic to set z-index to -1. All solutions are temporary, but solid solution should be corrected in your code.Hi Makla,
That’s the workaround I can suggest you. Update the z-index property. If necessary, update it on the widgets which you use. Most of the widgets expose properties like PopupZIndex for setting up the z-index through the widget’s API.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comI am sure you have a bug in window control.
fiddle Just click all buttons one after another. (Open 1 with bring to front, Close 1, Open 2 with bring to front, Open 1 again with bring to front)I set zIndex property in constructor of window 1 and 2, but this property is somehow ignored. When I click “Open 1 again with bring to front” the window 2 z-index is set to -1.
At some point the window zIndex become 0 and then -1 when I open another window.
-
AuthorPosts
You must be logged in to reply to this topic.