From 0e53e6f5a39309c5224966e88c126497f87524e4 Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Thu, 14 Apr 2016 10:57:54 +0200 Subject: [PATCH] Adjust layout for popup for windows --- .../io/bitsquare/btc/pricefeed/providers/PriceProvider.java | 1 + gui/src/main/java/io/bitsquare/gui/main/overlays/Overlay.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/core/src/main/java/io/bitsquare/btc/pricefeed/providers/PriceProvider.java b/core/src/main/java/io/bitsquare/btc/pricefeed/providers/PriceProvider.java index 36a9e618a0..6d564a4d14 100644 --- a/core/src/main/java/io/bitsquare/btc/pricefeed/providers/PriceProvider.java +++ b/core/src/main/java/io/bitsquare/btc/pricefeed/providers/PriceProvider.java @@ -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 getAllPrices() throws IOException, HttpException; diff --git a/gui/src/main/java/io/bitsquare/gui/main/overlays/Overlay.java b/gui/src/main/java/io/bitsquare/gui/main/overlays/Overlay.java index fdfe54b687..f4d4b782e5 100644 --- a/gui/src/main/java/io/bitsquare/gui/main/overlays/Overlay.java +++ b/gui/src/main/java/io/bitsquare/gui/main/overlays/Overlay.java @@ -566,6 +566,8 @@ public abstract class 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)