Adjust layout for popup for windows

This commit is contained in:
Manfred Karrer 2016-04-14 11:06:48 +02:00
parent 0e53e6f5a3
commit 0e5426e1ac

View file

@ -567,7 +567,7 @@ public abstract class Overlay<T extends Overlay> {
Window window = rootScene.getWindow(); Window window = rootScene.getWindow();
double titleBarHeight = window.getHeight() - rootScene.getHeight(); double titleBarHeight = window.getHeight() - rootScene.getHeight();
if (Utilities.isWindows()) if (Utilities.isWindows())
titleBarHeight -= 10; titleBarHeight -= 9;
stage.setX(Math.round(window.getX() + (owner.getWidth() - stage.getWidth()) / 2)); stage.setX(Math.round(window.getX() + (owner.getWidth() - stage.getWidth()) / 2));
if (type.animationType == AnimationType.SlideDownFromCenterTop) if (type.animationType == AnimationType.SlideDownFromCenterTop)