Fix the weird scroll bars.

This commit is contained in:
Danila Fedorin 2017-08-09 11:22:01 -07:00
parent c498a5b643
commit 61475a24d9
1 changed files with 2 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.prefWidthProperty().bind(widthProperty());
titledPane.prefWidthProperty().bind(widthProperty().subtract(32));
visibleProperty().addListener((a, b, c) -> titledPane.setExpanded(false));
}
@ -54,5 +54,6 @@ public class DocumentationCell extends ListCell<Documentation> {
longDescription.setText(item.getLongDescription());
setGraphic(titledPane);
}
titledPane.setExpanded(false);
}
}