Skip to content

RichTextLabel incorrectly creates a scrollbar when overflowing #112226

@miruji

Description

@miruji

Tested versions

v4.6.dev2.official [7864ac8]

System information

linux

Issue description

In general, it seems to me that RichTextLabel currently creates the scrollbar incorrectly. For example, you create any closed area, and when it overflows, a scrollbar will appear on the right side to scroll the text down. However, the creation is influenced by just one character, but if you remove that same character, the scrollbar does not disappear. Please remove at least 10 characters back at once. This seems like clearly incorrect behavior.

Steps to reproduce

a1.mp4
  1. Ideally, if you add 1 character and the list overflows, a scrollbar should appear.
  2. If we remove characters (1 in this case) and the list is no longer overflowing (currently you need to remove ~10), the scrollbar should disappear.

Minimal reproduction project (MRP)

--

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions