Skip to content

Fix window title drawn outside the title bar #107305

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

timothyqiu
Copy link
Member

Peek 2025-06-09 15-15

The cause of the problem is that drawing text with a negative trimming width means disabling clipping & trimming.

As you've noticed, the close button can also go outside the window. This PR leaves the close button alone as the proper solution is to limit the window's width. But doing that breaks compatibility.

Also documented the information I found when inspecting this issue.

@timothyqiu timothyqiu requested review from a team as code owners June 9, 2025 07:29
@timothyqiu timothyqiu changed the title Fit window title drawn outside the title bar Fix window title drawn outside the title bar Jun 9, 2025
@timothyqiu timothyqiu force-pushed the single-window-title branch from 3219c33 to b99c5c7 Compare June 9, 2025 07:30
@bruvzg bruvzg added this to the 4.5 milestone Jun 9, 2025
@timothyqiu timothyqiu force-pushed the single-window-title branch from b99c5c7 to f028bc9 Compare June 9, 2025 08:20
@Repiteo Repiteo merged commit 4e6f5f3 into godotengine:master Jun 9, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jun 9, 2025

Thanks!

@timothyqiu timothyqiu deleted the single-window-title branch June 10, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants