mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-26 19:41:04 -04:00
fix spacing of text field icon in buyer step view (#1976)
This commit is contained in:
parent
fb361730c7
commit
bc2ce1e77d
1 changed files with 2 additions and 1 deletions
|
@ -54,10 +54,11 @@ public class TextFieldWithIcon extends AnchorPane {
|
|||
|
||||
iconLabel = new Label();
|
||||
iconLabel.setLayoutX(0);
|
||||
iconLabel.setTranslateX(-15);
|
||||
iconLabel.setLayoutY(Layout.FLOATING_ICON_Y - 2);
|
||||
|
||||
dummyTextField.widthProperty().addListener((observable, oldValue, newValue) -> {
|
||||
iconLabel.setLayoutX(dummyTextField.widthProperty().get() + 20 + Layout.FLOATING_ICON_Y);
|
||||
iconLabel.setLayoutX(dummyTextField.widthProperty().get() + 35 + Layout.FLOATING_ICON_Y);
|
||||
});
|
||||
|
||||
getChildren().addAll(textField, dummyTextField, iconLabel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue