mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Small fixes
This commit is contained in:
parent
7d09b88a70
commit
eca94d24f2
3 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
})
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue