Skip to content

Commit

Permalink
Adjust layout for popup for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Apr 14, 2016
1 parent 0d3a3cd commit 0e53e6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
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;

Expand Down
2 changes: 2 additions & 0 deletions gui/src/main/java/io/bitsquare/gui/main/overlays/Overlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ protected void layout() {
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)
Expand Down

0 comments on commit 0e53e6f

Please sign in to comment.