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

Fix TextBlock.LineHeight #14669

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

Gillibald
Copy link
Contributor

@Gillibald Gillibald commented Feb 20, 2024

What does the pull request do?

This PR makes sure text stays centered if the custom LineHeight surpasses the regular LineHeight

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

…t the ascent so the text is properly centered
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0045157-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@robloo
Copy link
Contributor

robloo commented Feb 20, 2024

@Gillibald This might fix #10658 although I haven't tested myself.

TextBox always worked correctly and TextBlock worked fine with some fonts.

@maxkatz6 maxkatz6 added this pull request to the merge queue Feb 20, 2024
Merged via the queue into AvaloniaUI:master with commit 8d44623 Feb 20, 2024
6 checks passed
Gillibald added a commit to Gillibald/Avalonia that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants