fix spacing of text field icon in buyer step view (#1976)

This commit is contained in:
woodser 2025-09-24 03:31:56 -04:00 committed by GitHub
parent fb361730c7
commit bc2ce1e77d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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