mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 17:10:27 +00:00
Fix button height
This commit is contained in:
parent
a7efc737bb
commit
b778cc9e90
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue