Adjust layout for popup for windows

This commit is contained in:
Manfred Karrer 2016-04-14 10:57:54 +02:00
parent 0d3a3cd63a
commit 0e53e6f5a3
2 changed files with 3 additions and 0 deletions

View file

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