Fix RichTextLabel scrollbar when too small to show it#116390
Merged
Repiteo merged 1 commit intoFeb 20, 2026
Conversation
bruvzg
reviewed
Feb 18, 2026
3e69b9d to
a98f695
Compare
bruvzg
approved these changes
Feb 19, 2026
Contributor
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the RTL is too small to show the scrollbar, it isn't handled well, and the scollbar may be visible or not. When changing the size it flickers.
Before:
rtl-scrollbar-small-handling.mp4
After:
rtl-scrollbar-small-handling-fix.mp4
It also had issues when in a BoxContainer and it was too small to show, such as the script editor's error text at minimum width. It was escaping the BoxContainer rect.
Before (depending on the speed you do it, this is if you minimize it slowly):

After:

Now the scrollbar just doesn't show if too small.
This check prevents
p_width - scroll_wfrom being 0 or less which caused issues.