Skip to content

Commit

Permalink
Fix window content alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Feb 11, 2025
1 parent 770cf6d commit 9b613b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected Region createSimple() {
vbox.setAlignment(Pos.CENTER);

var pane = new StackPane(vbox);
pane.setAlignment(Pos.CENTER);
pane.setAlignment(Pos.TOP_LEFT);
pane.getStyleClass().add("background");

loaded.subscribe(struc -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected Region createSimple() {
});
modal.getStyleClass().add("modal-overlay-comp");
var pane = new StackPane(bgRegion, modal);
pane.setAlignment(Pos.CENTER);
pane.setAlignment(Pos.TOP_LEFT);
pane.setPickOnBounds(false);
pane.focusedProperty().addListener((observable, oldValue, newValue) -> {
if (newValue) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/io/xpipe/app/core/window/AppMainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ private static synchronized void initEmpty(boolean show) {
}

var stage = App.getApp().getStage();
stage.setMinWidth(600);
stage.setMinHeight(500);
stage.setMinWidth(500);
stage.setMinHeight(400);
INSTANCE = new AppMainWindow(stage);

var content = new AppMainWindowContentComp(stage).createRegion();
Expand Down

0 comments on commit 9b613b5

Please sign in to comment.