You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a style to a RichTextLabel, and setting content_margin_bot, the text does not respect these margin, which causes text being rendered on top of the margins.
Example:
Steps to reproduce
Add a RichTextLabel, fill it with text
Add a StyleBoxFlat to it
Set border width to 20 for all borders
Set content margin to 30 for all borders
Note how text overlaps with borders only in the bottom
The same problem happens with the right content margin
It works correctly when enabling "Fit Content"
Notice that the same happens with a regular label when you enable "Clip Text"
But it works correctly when "Text Overrun" is set to anything other than "Trim Nothing". Here's with "Trim Characters"
Also, you can see that setting direction to right-to-left makes results in the left content margin being ignored
What I think is happening is that the contents are rendered using the right offset as starting point, but then Clip Contents only cares about the control's rectangle even though it should consider content margins
Tested versions
v4.2.1.stable.official [b09f793]
System information
Windows 11 and Ubuntu 22.04, all renderers
Issue description
When adding a style to a RichTextLabel, and setting content_margin_bot, the text does not respect these margin, which causes text being rendered on top of the margins.
Example:

Steps to reproduce
Minimal reproduction project (MRP)
ThemeIssues.zip
The text was updated successfully, but these errors were encountered: