Change the width property bound to the width.

This commit is contained in:
Danila Fedorin 2017-08-08 14:18:08 -07:00
parent 400e4578a0
commit 6767a0e4aa
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class DocumentationCell extends ListCell<Documentation> {
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));
}