We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e5ade commit c3cd2b9Copy full SHA for c3cd2b9
sources/net.sf.j2s.java.core/src/swingjs/plaf/JSFrameUI.java
@@ -3,6 +3,7 @@
3
import javajs.api.JSFunction;
4
5
import java.awt.Color;
6
+import java.awt.Container;
7
import java.awt.Dimension;
8
import java.awt.Insets;
9
import java.awt.Rectangle;
@@ -137,7 +138,7 @@ public DOMNode updateDOMNode() {
137
138
* return $(fnode).parent();
139
* case 3:
140
* if (mode == 506) {
- * me.moveFrame$I$I(x,y);
141
+ * me.moveFrame$I$I(x, y);
142
* return null;
143
* }
144
@@ -179,7 +180,12 @@ public DOMNode updateDOMNode() {
179
180
}
181
182
183
+
184
void moveFrame(int x, int y) {
185
+ if (!isInternalFrame) {
186
+ x = Math.max(30 - frame.getWidth(), x);
187
+ y = Math.max(0, y);
188
+ }
189
frame.setLocation(x, y);
190
191
0 commit comments