Small fixes

This commit is contained in:
crschnick 2023-06-01 10:50:40 +00:00
parent 7d09b88a70
commit eca94d24f2
3 changed files with 6 additions and 2 deletions

View file

@ -111,7 +111,10 @@ public class BrowserNavBar extends SimpleComp {
var topBox = new HorizontalComp(List.of(Comp.of(() -> graphicButton), stack))
.apply(struc -> struc.get().setAlignment(Pos.CENTER_LEFT))
.apply(struc -> ((Region) struc.get().getChildren().get(0)).prefHeightProperty().bind(((Region) struc.get().getChildren().get(1)).heightProperty()))
.apply(struc -> {
((Region) struc.get().getChildren().get(0)).minHeightProperty().bind(((Region) struc.get().getChildren().get(1)).heightProperty());
((Region) struc.get().getChildren().get(0)).maxHeightProperty().bind(((Region) struc.get().getChildren().get(1)).heightProperty());
})
.apply(struc -> {
struc.get().setPickOnBounds(false);
})

View file

@ -218,6 +218,7 @@ public class AppMainWindow {
private void setupContent(Comp<?> content) {
var contentR = content.createRegion();
var scene = new Scene(contentR, -1, -1, false);
TrackEvent.debug("Created initial scene");
stage.setScene(scene);
contentR.requestFocus();
TrackEvent.debug("Set content scene");

View file

@ -1,5 +1,5 @@
.sidebar-comp {
-fx-pref-width: 7em;
-fx-pref-width: 8em;
-fx-border-width: 0 0 0 1px;
-fx-border-color: -color-neutral-emphasis;
-fx-padding: 0;