From 2e6101db0d39bd143f64a7d0a6852560abe4d52f Mon Sep 17 00:00:00 2001 From: szydlovsky <9szydlowski9@gmail.com> Date: Thu, 2 Oct 2025 16:27:59 +0200 Subject: [PATCH] fix: align measured component height with maximum layout constraint --- ios/internals/EnrichedTextInputViewShadowNode.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ios/internals/EnrichedTextInputViewShadowNode.mm b/ios/internals/EnrichedTextInputViewShadowNode.mm index 983d9c8f2..647d5f157 100644 --- a/ios/internals/EnrichedTextInputViewShadowNode.mm +++ b/ios/internals/EnrichedTextInputViewShadowNode.mm @@ -55,7 +55,10 @@ }); } - return {estimatedSize.width, estimatedSize.height}; + return { + estimatedSize.width, + MIN(estimatedSize.height, layoutConstraints.maximumSize.height) + }; } } else { // on the very first call there is no componentView that we can query for the component height