Skip to content

Fix : adjustsFontSizeToFit just redrawing won't recalculate the layout #14813

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 2 commits into from
Jun 24, 2025

Conversation

iamAbhi-916
Copy link
Contributor

@iamAbhi-916 iamAbhi-916 commented Jun 20, 2025

Description

adjustsFontSizeToFit is a layout-affecting property that changes how the text is sized to fit within its container
The WindowsTextLayoutManager::GetTextLayout() method needs to be called with the new adjustsFontSizeToFit value to properly calculate the adjusted font size

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Bug fix : adjustsFontSizeToFit just redrawing won't recalculate the layout

Resolves [Add Relevant Issue Here]
#14812

What

What changes were made to the codebase to solve the bug, add the functionality, etc. that you specified above.

Screenshots

adjustfontsize.mp4

Testing

tested in playground .

Changelog

Should this change be included in the release notes: yes

Add a brief summary of the change to use in the release notes for the next release.
Fixed an issue where changes to the adjustsFontSizeToFit property on Text components did not properly recalculate text layout

@iamAbhi-916 iamAbhi-916 marked this pull request as ready for review June 23, 2025 07:56
@iamAbhi-916 iamAbhi-916 requested a review from a team as a code owner June 23, 2025 07:56
@iamAbhi-916 iamAbhi-916 merged commit 3e6cccc into microsoft:main Jun 24, 2025
58 checks passed
@iamAbhi-916 iamAbhi-916 deleted the adjusttextlayout branch June 24, 2025 04:41
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.

2 participants