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

Cutting text in button StyleBox with Context Margins #95580

Closed
diklor opened this issue Aug 15, 2024 · 2 comments · Fixed by #97897
Closed

Cutting text in button StyleBox with Context Margins #95580

diklor opened this issue Aug 15, 2024 · 2 comments · Fixed by #97897

Comments

@diklor
Copy link

diklor commented Aug 15, 2024

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

@Calinou
Copy link
Member

Calinou commented Aug 16, 2024

According to godotengine/godot-proposals#10448 (comment), this is a regression as the bug didn't occur in 4.2.2.

@akien-mga
Copy link
Member

Would this happen to be the same issue that's fixed by #95511 ?

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.

4 participants