Small fixes

This commit is contained in:
crschnick 2024-05-11 17:56:55 +00:00
parent 100820b439
commit e63d044313
2 changed files with 2 additions and 1 deletions

View file

@ -107,6 +107,7 @@ public class BrowserFilterComp extends Comp<BrowserFilterComp.Structure> {
}
});
button.prefHeightProperty().bind(text.heightProperty());
button.prefWidthProperty().bind(text.heightProperty());
return new Structure(box, (TextField) text, button);
}

View file

@ -129,7 +129,7 @@ public class BrowserNavBar extends Comp<BrowserNavBar.Structure> {
var topBox = new HBox(homeButton, stack, historyButton);
topBox.setAlignment(Pos.CENTER);
homeButton.minWidthProperty().bind(pathRegion.heightProperty());
homeButton.maxWidthProperty().bind(pathRegion.heightProperty());
homeButton.maxWidthProperty().bind(pathRegion.heightProperty().multiply(1.3));
homeButton.minHeightProperty().bind(pathRegion.heightProperty());
homeButton.maxHeightProperty().bind(pathRegion.heightProperty());
historyButton.minHeightProperty().bind(pathRegion.heightProperty());