fix vertical alignment of text field with icon

This commit is contained in:
woodser 2025-07-03 09:29:48 -04:00 committed by woodser
parent e089a6f2a4
commit c6ef499ced

View file

@ -54,7 +54,7 @@ public class TextFieldWithIcon extends AnchorPane {
iconLabel = new Label();
iconLabel.setLayoutX(0);
iconLabel.setLayoutY(Layout.FLOATING_ICON_Y);
iconLabel.setLayoutY(Layout.FLOATING_ICON_Y - 2);
dummyTextField.widthProperty().addListener((observable, oldValue, newValue) -> {
iconLabel.setLayoutX(dummyTextField.widthProperty().get() + 20 + Layout.FLOATING_ICON_Y);