diff --git a/src/main/java/org/nwapw/abacus/fx/DocumentationCell.java b/src/main/java/org/nwapw/abacus/fx/DocumentationCell.java index bc68fb7..fbb5c0f 100644 --- a/src/main/java/org/nwapw/abacus/fx/DocumentationCell.java +++ b/src/main/java/org/nwapw/abacus/fx/DocumentationCell.java @@ -33,7 +33,7 @@ public class DocumentationCell extends ListCell { titledPane.textProperty().bindBidirectional(codeNameLabel.textProperty()); titledPane.setContent(vbox); titledPane.setExpanded(false); - titledPane.maxWidthProperty().bind(widthProperty()); + titledPane.prefWidthProperty().bind(widthProperty()); visibleProperty().addListener((a, b, c) -> titledPane.setExpanded(false)); }