1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-18 12:55:19 +00:00

Fix the weird scroll bars.

This commit is contained in:
2017-08-09 11:22:01 -07:00
parent 3183c23c72
commit d819084e4a

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