Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LineEdit clear button for asymmetric stylebox #61495

Merged
merged 1 commit into from
May 31, 2022

Conversation

timothyqiu
Copy link
Member

_is_over_clear_button() used the wrong margin when calculating the X position of the clear button. So the result is currently wrong when the stylebox is asymmetric.

@YuriSizov
Copy link
Contributor

Does this code respect RTL btw? Do we still show the button on the right and can rely on the right margin?

@timothyqiu
Copy link
Member Author

The clear button is still on the right side when RTL.

@akien-mga akien-mga merged commit a837acc into godotengine:master May 31, 2022
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the asymmetric-le branch May 31, 2022 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants