mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Refactor BisqApp - update scene size calculation
This commit is contained in:
parent
7bed73e687
commit
a9c24488fd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user