Skip to content

Commit 3e6cccc

Browse files
authored
Fix : adjustsFontSizeToFit just redrawing won't recalculate the layout (#14813)
* updated adjustsFontSizeToFit textlayout to nullptr * Change files
1 parent c301350 commit 3e6cccc

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": "74712637+iamAbhi-916@users.noreply.github.com",
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
@@ -68,7 +68,7 @@ void ParagraphComponentView::updateProps(
6868
}
6969

7070
if (oldViewProps.paragraphAttributes.adjustsFontSizeToFit != newViewProps.paragraphAttributes.adjustsFontSizeToFit) {
71-
m_requireRedraw = true;
71+
m_textLayout = nullptr;
7272
}
7373

7474
Super::updateProps(props, oldProps);

0 commit comments

Comments
 (0)