Skip to content

Cutting text in button StyleBox with Context Margins #95580

Closed
@diklor

Description

@diklor

Tested versions

4.3 stable

System information

Windows 10 Godot 4.3 stable Forward+

Issue description

The last letters are cut off for different styleboxes in the button

issue

Disabled (Empty) Normal

Steps to reproduce

  • Empty project, just create a scene with a container

  • In container create button with both central alignment.

When the button is disabled and the text is changed when it's disabled, when set 'Disabled ' to false, the last characters are cut

At runtime text is cut off simply by setting 'Disabled' off from script (button.disabled = false) when the button was initially disabled in the scene

Minimal reproduction project (MRP)

issue_scene.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions