Fix button height

This commit is contained in:
crschnick 2024-04-12 14:42:04 +00:00
parent a7efc737bb
commit b778cc9e90

View file

@ -96,7 +96,10 @@ public class BrowserWelcomeComp extends SimpleComp {
var disable = new SimpleBooleanProperty();
var entryButton = entryButton(e, disable);
var dirButton = dirButton(e, disable);
return new HorizontalComp(List.of(entryButton, dirButton));
return new HorizontalComp(List.of(entryButton, dirButton)).apply(struc -> {
((Region) struc.get().getChildren().get(0)).prefHeightProperty().bind(struc.get().heightProperty());
((Region) struc.get().getChildren().get(1)).prefHeightProperty().bind(struc.get().heightProperty());
});
})
.apply(struc -> {
VBox vBox = (VBox) struc.get().getContent();