From 0613f06023755dfac9fd61f76a77f703faf961b0 Mon Sep 17 00:00:00 2001 From: Dane Lucas Date: Mon, 29 Jun 2026 14:51:42 -0700 Subject: [PATCH 1/2] Fixes misalignment with TextInput on different display scales --- .../Composition/TextInput/WindowsTextInputComponentView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 378db30d8b68e9671b25f667589825c441730d9f Mon Sep 17 00:00:00 2001 From: Dane Lucas Date: Mon, 29 Jun 2026 15:01:02 -0700 Subject: [PATCH 2/2] Change files --- ...ative-windows-cd62869b-afa6-48c7-815f-e1bc141e9075.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 change/react-native-windows-cd62869b-afa6-48c7-815f-e1bc141e9075.json diff --git a/change/react-native-windows-cd62869b-afa6-48c7-815f-e1bc141e9075.json b/change/react-native-windows-cd62869b-afa6-48c7-815f-e1bc141e9075.json new file mode 100644 index 00000000000..d75e82da5f5 --- /dev/null +++ b/change/react-native-windows-cd62869b-afa6-48c7-815f-e1bc141e9075.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Fixes misalignment with TextInput on different display scales", + "packageName": "react-native-windows", + "email": "dlucas@seabird.com", + "dependentChangeType": "patch" +}