mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-17 16:09:32 -08:00
Fix the weird scroll bars.
This commit is contained in:
parent
c498a5b643
commit
61475a24d9
|
@ -33,7 +33,7 @@ public class DocumentationCell extends ListCell<Documentation> {
|
||||||
titledPane.textProperty().bindBidirectional(codeNameLabel.textProperty());
|
titledPane.textProperty().bindBidirectional(codeNameLabel.textProperty());
|
||||||
titledPane.setContent(vbox);
|
titledPane.setContent(vbox);
|
||||||
titledPane.setExpanded(false);
|
titledPane.setExpanded(false);
|
||||||
titledPane.prefWidthProperty().bind(widthProperty());
|
titledPane.prefWidthProperty().bind(widthProperty().subtract(32));
|
||||||
|
|
||||||
visibleProperty().addListener((a, b, c) -> titledPane.setExpanded(false));
|
visibleProperty().addListener((a, b, c) -> titledPane.setExpanded(false));
|
||||||
}
|
}
|
||||||
|
@ -54,5 +54,6 @@ public class DocumentationCell extends ListCell<Documentation> {
|
||||||
longDescription.setText(item.getLongDescription());
|
longDescription.setText(item.getLongDescription());
|
||||||
setGraphic(titledPane);
|
setGraphic(titledPane);
|
||||||
}
|
}
|
||||||
|
titledPane.setExpanded(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user