Skip to content

Commit

Permalink
Apply size to root as well
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikJannsen committed Dec 7, 2023
1 parent dabbae2 commit 167a404
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions desktop/src/main/java/bisq/desktop/overlay/OverlayView.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ protected void onViewDetached() {
}

private void resizeStage(double prefWidth, double prefHeight) {
stage.setWidth(Math.min(prefWidth, owner.getWidth()));
stage.setHeight(Math.min(prefHeight, owner.getHeight()));
double width = Math.min(prefWidth, owner.getWidth());
double height = Math.min(prefHeight, owner.getHeight());
stage.setWidth(width);
stage.setHeight(height);
root.setPrefWidth(width);
root.setPrefHeight(height);
layout();
}

Expand Down

0 comments on commit 167a404

Please sign in to comment.