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

Label's Valign property ignores bottom border of stylebox #39923

Closed
Poobslag opened this issue Jun 28, 2020 · 2 comments · Fixed by #49011
Closed

Label's Valign property ignores bottom border of stylebox #39923

Poobslag opened this issue Jun 28, 2020 · 2 comments · Fixed by #49011
Milestone

Comments

@Poobslag
Copy link

Godot version: v3.2.2.stable.official

OS/device including version: Windows 8 desktop

Issue description: If a Label has a StyleBox with a border, the Valign property aligns text too low. When VAlign is set to 'Center', instead of the text being centered it appears in the bottom. When VAlign is set to 'Bottom', instead of the text being positioned at the bottom, it's positioned outside the label entirely.

The 'Left' and 'Right' Align properties work OK, as does the 'Top' Valign property. They respect the StyleBox borders. The problem appears to specifically affect the bottom border.

image

Steps to reproduce: Create a Label and set its Valign property to 'Center' or 'Bottom'. Give the Label a StyleBox with a bottom border 5 pixels or larger. The larger the border, the more noticable the bug.

Minimal reproduction project: label-glitch.zip

@aaronfranke
Copy link
Member

Possibly related to #39630

@Haledire
Copy link

Haledire commented Jun 28, 2020

I'd like to note that somehow content margin bottom also has no bearing on a label. It will certainly expand the size of the label if it's too big, but it never effects v-aligned text

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.

5 participants