1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-10 01:05:20 +00:00

Fix the weird scroll bars.

This commit is contained in:
2017-08-09 11:22:01 -07:00
parent c498a5b643
commit 61475a24d9

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