diff --git a/desktop/src/main/java/bisq/desktop/app/BisqApp.java b/desktop/src/main/java/bisq/desktop/app/BisqApp.java index fed66ca5f9e..3afd68bbdb8 100644 --- a/desktop/src/main/java/bisq/desktop/app/BisqApp.java +++ b/desktop/src/main/java/bisq/desktop/app/BisqApp.java @@ -218,10 +218,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);