mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-11 22:19:47 -05:00
Set prefHeight for HBoxes to prevent layout jumping
This commit is contained in:
parent
d92ab1d310
commit
0f65441700
1 changed files with 4 additions and 2 deletions
|
|
@ -315,6 +315,7 @@ public class MainViewCB extends ViewCB<MainPM> {
|
|||
blockchainSyncBox.setSpacing(10);
|
||||
blockchainSyncBox.setAlignment(Pos.CENTER);
|
||||
blockchainSyncBox.setPadding(new Insets(60, 0, 0, 0));
|
||||
blockchainSyncBox.setPrefHeight(50);
|
||||
blockchainSyncBox.getChildren().addAll(blockchainSyncLabel, blockchainSyncIndicator, blockchainSyncIcon);
|
||||
|
||||
Label bootstrapStateLabel = new Label();
|
||||
|
|
@ -354,6 +355,7 @@ public class MainViewCB extends ViewCB<MainPM> {
|
|||
bootstrapBox.setSpacing(10);
|
||||
bootstrapBox.setAlignment(Pos.CENTER);
|
||||
bootstrapBox.setPadding(new Insets(10, 0, 0, 0));
|
||||
bootstrapBox.setPrefHeight(50);
|
||||
bootstrapBox.getChildren().addAll(bootstrapStateLabel, bootstrapIndicator, bootstrapIcon);
|
||||
|
||||
vBox.getChildren().addAll(logo, blockchainSyncBox, bootstrapBox);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue