Skip to content

Commit 5b5b1ea

Browse files
hansonrhansonr
authored andcommitted
z-index requires position:absolute
1 parent f9d27c8 commit 5b5b1ea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSWindowUI.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,8 @@ public DOMNode updateDOMNode() {
101101

102102

103103
protected void setWindowClass() {
104-
DOMNode.setZ(domNode, z);
104+
setZOrder(z);
105105
addClass(domNode, "swingjs-window");
106-
107-
System.out.println("JSWIndowUI testing?");
108-
109106
// these next two lines are what allow the FocusManager to work....or not
110107
// focusNode = domNode;
111108
// addJQueryFocusCallbacks();
@@ -124,6 +121,7 @@ public void toFront() {
124121
if (debugging)
125122
System.out.println("window to front for " + id);
126123
z = J2S.setWindowZIndex(domNode, Integer.MAX_VALUE);
124+
DOMNode.setPositionAbsolute(domNode);
127125
if (modalNode != null)
128126
DOMNode.setZ(modalNode, z - 1);
129127
}

0 commit comments

Comments
 (0)