Refactor BisqApp - update scene size calculation

This commit is contained in:
lukasz 2019-10-09 17:35:58 +02:00
parent 7bed73e687
commit a9c24488fd

View File

@ -218,10 +218,10 @@ public class BisqApp extends Application implements UncaughtExceptionHandler {
}
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);