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

In a RichTextLabel, you can't see highlighted text when a background color wraps lines #100072

Closed
eviltrout opened this issue Dec 5, 2024 · 0 comments · Fixed by #100208
Closed

Comments

@eviltrout
Copy link
Contributor

Tested versions

  • Reproducible in v4.4.dev5.official [9e60984]
  • Reproducible in 4.3-stable

System information

Godot v4.4.dev5 - Windows 10.0.26100 - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 32.0.15.6614) - 13th Gen Intel(R) Core(TM) i9-13900K (32 threads)

Issue description

If you have a RichTextLabel which uses BBCode and has a [bgcolor] tag, you cannot always see your text selection.

In particular, if the [bgcolor] spans over a line break, you cannot see your selection at all.

For example with this control:

Image

If I highlight from before the end of the line the red text is not highlighted. (The additional red on the second like does get highlighted, though.)

Image

Here is an example where the [bgcolor] is mid sentence and it works fine:

Image

Steps to reproduce

I have included a MRP that demonstrates the issue. Simply start it and try to select text in the second line that goes beyond the wrap.

Minimal reproduction project (MRP)

highlight-bg-mrp.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants