fix spacing of text field icon in buyer step view

This commit is contained in:
woodser 2025-09-24 03:30:53 -04:00
parent fb361730c7
commit 252d6e7295
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

View file

@ -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);