1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-22 07:20:09 -08:00

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

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));
}