modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
Print this page
*** 362,379 ****
--- 362,381 ----
px = xSet ? Math.round(screen.getPlatformX() + (x - sx) * sScaleX) : 0;
py = ySet ? Math.round(screen.getPlatformY() + (y - sy) * sScaleY) : 0;
} else {
px = py = 0;
}
+ if (xSet || ySet || w > 0 || h > 0 || cw > 0 || ch > 0) {
int pw = (int) (w > 0 ? Math.ceil(w * pScaleX) : w);
int ph = (int) (h > 0 ? Math.ceil(h * pScaleY) : h);
int pcw = (int) (cw > 0 ? Math.ceil(cw * pScaleX) : cw);
int pch = (int) (ch > 0 ? Math.ceil(ch * pScaleY) : ch);
platformWindow.setBounds(px, py, xSet, ySet,
pw, ph, pcw, pch,
xGravity, yGravity);
}
+ }
@Override
public float getPlatformScaleX() {
return platformWindow.getPlatformScaleX();
}