Fix layout shift with small height

This commit is contained in:
crschnick
2025-07-21 07:03:04 +00:00
parent 08dafc1d70
commit aba21171f9
2 changed files with 2 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ public class StoreLayoutComp extends SimpleComp {
left.hide(AppMainWindow.getInstance().getStage().widthProperty().lessThan(1000));
left.minWidth(270);
left.maxWidth(500);
left.minHeight(0);
var comp = new LeftSplitPaneComp(left, new StoreEntryListComp())
.withInitialWidth(AppLayoutModel.get().getSavedState().getSidebarWidth())
.withOnDividerChange(aDouble -> {

View File

@@ -80,6 +80,7 @@ public class AppPrefsComp extends SimpleComp {
sidebar.setMinWidth(260);
sidebar.setPrefWidth(260);
sidebar.setMaxWidth(260);
sidebar.setMinHeight(0);
var split = new HBox(sidebar, scrollPane);
HBox.setMargin(sidebar, new Insets(4));