|
@@ -97,6 +97,17 @@ public class ResizeController implements FxController {
|
|
|
}
|
|
|
|
|
|
private void checkDisplayBounds(WindowEvent evt) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (window.getX() == -32000 && window.getY() == -32000) {
|
|
|
+ window.setX(settings.windowXPosition.get());
|
|
|
+ window.setY(settings.windowYPosition.get());
|
|
|
+ window.setWidth(settings.windowWidth.get());
|
|
|
+ window.setHeight(settings.windowHeight.get());
|
|
|
+ }
|
|
|
+
|
|
|
if (!isWithinDisplayBounds()) {
|
|
|
|
|
|
Rectangle2D primaryScreenBounds = Screen.getPrimary().getBounds();
|