From 6767a0e4aa8fed15bd95052057261b67350b7e0b Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 8 Aug 2017 14:18:08 -0700 Subject: [PATCH] Change the width property bound to the width. --- src/main/java/org/nwapw/abacus/fx/DocumentationCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }