react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Fix : adjustsFontSizeToFit just redrawing won't recalculate the layout

Open iamAbhi-916 opened this issue 7 months ago • 0 comments

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] https://github.com/microsoft/react-native-windows/issues/14812

What

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

Screenshots

https://github.com/user-attachments/assets/ea393f6e-d4ba-442d-832a-7e3b85169c3d

Testing

tested in playground .

Changelog

Should this change be included in the release notes: _indicate 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 avatar Jun 20 '25 11:06 iamAbhi-916