Skip to content

Commit

Permalink
Merge pull request #3380 from lusarz/refactor-bisq-app-scene-size-cal…
Browse files Browse the repository at this point in the history
…culation

Refactor BisqApp - update scene size calculation
  • Loading branch information
ripcurlx authored Oct 14, 2019
2 parents 4277ec8 + a9c2448 commit aaddda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/src/main/java/bisq/desktop/app/BisqApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ private Scene createAndConfigScene(MainView mainView, Injector injector) {
}
Scene scene = new Scene(mainView.getRoot(),
maxWindowBounds.width < INITIAL_WINDOW_WIDTH ?
(maxWindowBounds.width < MIN_WINDOW_WIDTH ? MIN_WINDOW_WIDTH : maxWindowBounds.width) :
Math.max(maxWindowBounds.width, MIN_WINDOW_WIDTH) :
INITIAL_WINDOW_WIDTH,
maxWindowBounds.height < INITIAL_WINDOW_HEIGHT ?
(maxWindowBounds.height < MIN_WINDOW_HEIGHT ? MIN_WINDOW_HEIGHT : maxWindowBounds.height) :
Math.max(maxWindowBounds.height, MIN_WINDOW_HEIGHT) :
INITIAL_WINDOW_HEIGHT);

addSceneKeyEventHandler(scene, injector);
Expand Down

0 comments on commit aaddda9

Please sign in to comment.