Dynamic list view size in Dao network monitor view

This commit is contained in:
Florian Reimair 2019-08-13 11:44:44 +02:00
parent 7e7d956f05
commit 637071c956
No known key found for this signature in database
GPG Key ID: 05634D8D7A7954C8
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,7 @@
AnchorPane.topAnchor="15"/>
<ScrollPane fitToWidth="true" hbarPolicy="NEVER"
fitToHeight="true"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="270.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<AnchorPane fx:id="content" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"

View File

@ -247,6 +247,7 @@ public abstract class StateMonitorView<StH extends StateHash,
createColumns();
GridPane.setRowIndex(tableView, gridRow);
GridPane.setHgrow(tableView, Priority.ALWAYS);
GridPane.setVgrow(tableView, Priority.SOMETIMES);
GridPane.setMargin(tableView, new Insets(Layout.FIRST_ROW_AND_GROUP_DISTANCE, -10, -25, -10));
root.getChildren().add(tableView);
@ -267,7 +268,8 @@ public abstract class StateMonitorView<StH extends StateHash,
createConflictColumns();
GridPane.setRowIndex(conflictTableView, gridRow);
GridPane.setHgrow(conflictTableView, Priority.ALWAYS);
GridPane.setMargin(conflictTableView, new Insets(Layout.FIRST_ROW_AND_GROUP_DISTANCE, -10, -25, -10));
GridPane.setVgrow(conflictTableView, Priority.SOMETIMES);
GridPane.setMargin(conflictTableView, new Insets(Layout.FIRST_ROW_AND_GROUP_DISTANCE, -10, 5, -10));
root.getChildren().add(conflictTableView);
conflictTableView.setItems(sortedConflictList);