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

[3.x] Fix RichTextLabel underline appearance when inside fill tag #54296

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

timothyqiu
Copy link
Member

Fixes #32779

Before After
before after

Fixes wrong appearance of underline, strikethrough, and url tags when used inside [fill] by growing the underline horizontally with the amount introduced by the fill tag (align_spacing).

The diff looks messy because I merged the drawing code of underline and strikethrough. The two blocks of code were basically the same except the Y position of the line.

@timothyqiu timothyqiu requested a review from a team as a code owner October 27, 2021 05:58
@YuriSizov YuriSizov added this to the 3.5 milestone Oct 27, 2021
@timothyqiu timothyqiu marked this pull request as draft October 27, 2021 10:15
@timothyqiu
Copy link
Member Author

timothyqiu commented Oct 27, 2021

Ah, the lines does not end correctly if the RichTextLabel has content margin, I'll try to figure it out tomorrow :)

Update: Actually, done before tomorrow 🎉

@timothyqiu timothyqiu marked this pull request as ready for review October 27, 2021 13:06
@akien-mga akien-mga force-pushed the 3.x branch 2 times, most recently from 71cb8d3 to c58391c Compare January 6, 2022 22:40
@timothyqiu timothyqiu requested a review from akien-mga January 7, 2022 06:20
@akien-mga akien-mga merged commit 89574a8 into godotengine:3.x Jan 7, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.3.

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