Prevent horizontal scroll bar in settings page

This commit is contained in:
huangyuhui
2018-09-02 21:52:45 +08:00
parent 5c5f091769
commit b8793f7575

View File

@@ -62,13 +62,12 @@ public abstract class SettingsView extends StackPane {
public SettingsView() { public SettingsView() {
scroll = new ScrollPane(); scroll = new ScrollPane();
getChildren().setAll(scroll); getChildren().setAll(scroll);
scroll.setStyle("-fx-font-size: 14; -fx-pref-width: 100%;"); scroll.setStyle("-fx-font-size: 14;");
scroll.setFitToHeight(true);
scroll.setFitToWidth(true); scroll.setFitToWidth(true);
{ {
VBox rootPane = new VBox(); VBox rootPane = new VBox();
rootPane.setStyle("-fx-padding: 20;"); rootPane.setStyle("-fx-padding: 18;");
{ {
ComponentList settingsPane = new ComponentList(); ComponentList settingsPane = new ComponentList();
{ {