From 53a447c72df97c728102878a5755d9df23307c22 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 19 May 2021 09:51:55 +0200 Subject: [PATCH] fix cpu usage on spreadsheetview --- .../com/sparrowwallet/sparrow/control/SendToManyDialog.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/SendToManyDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/SendToManyDialog.java index 0383ef7c..fd8b1344 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/SendToManyDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/SendToManyDialog.java @@ -14,6 +14,7 @@ import javafx.scene.Node; import javafx.scene.control.*; import javafx.scene.image.Image; import javafx.scene.image.ImageView; +import javafx.scene.layout.StackPane; import javafx.stage.FileChooser; import javafx.util.StringConverter; import org.controlsfx.control.spreadsheet.*; @@ -50,7 +51,10 @@ public class SendToManyDialog extends Dialog> { spreadsheetView.getColumns().get(0).setPrefWidth(400); spreadsheetView.getColumns().get(1).setPrefWidth(150); spreadsheetView.getColumns().get(2).setPrefWidth(247); - dialogPane.setContent(spreadsheetView); + + StackPane stackPane = new StackPane(); + stackPane.getChildren().add(spreadsheetView); + dialogPane.setContent(stackPane); dialogPane.getButtonTypes().addAll(ButtonType.OK, ButtonType.CANCEL);