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

@ -7,6 +7,7 @@ import java.io.IOException;
import java.io.Serializable;
import java.util.Map;
// https://api.bitfinex.com/v1/pubticker/BTCUSD
public interface PriceProvider extends Serializable {
Map<String, MarketPrice> getAllPrices() throws IOException, HttpException;

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)