diff --git a/change/react-native-windows-7d9b1431-48aa-416e-b5eb-712e0d1c34be.json b/change/react-native-windows-7d9b1431-48aa-416e-b5eb-712e0d1c34be.json new file mode 100644 index 00000000000..f6f944da6bf --- /dev/null +++ b/change/react-native-windows-7d9b1431-48aa-416e-b5eb-712e0d1c34be.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fixes misalginment with TextInput on different display scales", + "packageName": "react-native-windows", + "email": "dlucas@seabird.com", + "dependentChangeType": "patch" +} diff --git a/vnext/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp b/vnext/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp index d78ab76afab..91ae1551daf 100644 --- a/vnext/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +++ b/vnext/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp @@ -1329,7 +1329,7 @@ void WindowsTextInputComponentView::updateLayoutMetrics( facebook::react::LayoutMetrics const &oldLayoutMetrics) noexcept { // Set Position & Size Properties - if ((layoutMetrics.pointScaleFactor != m_layoutMetrics.pointScaleFactor)) { + if (m_textServices && layoutMetrics.pointScaleFactor > 0) { LRESULT res; winrt::check_hresult(m_textServices->TxSendMessage( (WM_USER + 328), // EM_SETDPI