Skip to content

Commit 2a0b02b

Browse files
iamAbhi-916acoates-ms
authored andcommitted
Fix : adjustsFontSizeToFit just redrawing won't recalculate the layout (microsoft#14813)
* updated adjustsFontSizeToFit textlayout to nullptr * Change files
1 parent 99b0cb0 commit 2a0b02b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "updated adjustsFontSizeToFit textlayout to nullptr",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

vnext/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void ParagraphComponentView::updateProps(
6969
}
7070

7171
if (oldViewProps.paragraphAttributes.adjustsFontSizeToFit != newViewProps.paragraphAttributes.adjustsFontSizeToFit) {
72-
m_requireRedraw = true;
72+
m_textLayout = nullptr;
7373
}
7474

7575
Super::updateProps(props, oldProps);

0 commit comments

Comments
 (0)