Skip to content

Commit

Permalink
Fix sidebar crusher
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Jul 22, 2023
1 parent cc0763c commit c9be795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/xpipe/app/comp/base/SideMenuBarComp.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import io.xpipe.app.fxcomps.Comp;
import io.xpipe.app.fxcomps.CompStructure;
import io.xpipe.app.fxcomps.SimpleCompStructure;
import io.xpipe.app.fxcomps.augment.GrowAugment;
import io.xpipe.app.fxcomps.impl.FancyTooltipAugment;
import io.xpipe.app.fxcomps.impl.IconButtonComp;
import io.xpipe.app.fxcomps.util.PlatformThread;
Expand All @@ -17,6 +16,7 @@
import javafx.css.PseudoClass;
import javafx.scene.control.Button;
import javafx.scene.layout.Priority;
import javafx.scene.layout.Region;
import javafx.scene.layout.VBox;
import org.kordamp.ikonli.javafx.FontIcon;

Expand Down Expand Up @@ -73,7 +73,7 @@ public CompStructure<VBox> createBase() {
filler.setMaxHeight(3000);
vbox.getChildren().add(filler);
VBox.setVgrow(filler, Priority.ALWAYS);
GrowAugment.create(true, false).augment(filler);
filler.prefWidthProperty().bind(((Region) vbox.getChildren().get(0)).widthProperty());

vbox.getStyleClass().add("sidebar-comp");
return new SimpleCompStructure<>(vbox);
Expand Down

0 comments on commit c9be795

Please sign in to comment.