Skip to content

Commit 59161b5

Browse files
committed
fix: use contentSize
1 parent bf54abc commit 59161b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/EnrichedTextInputView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ - (CGSize)measureSize:(CGFloat)maxWidth {
708708
CGRect usedRect = [layoutManager usedRectForTextContainer:container];
709709
CGSize contentSize = CGSizeMake(maxWidth, ceil(usedRect.size.height));
710710
textView.contentSize = contentSize;
711-
return self.bounds.size;
711+
return contentSize;
712712
}
713713

714714
// make sure the newest state is kept in _state property

0 commit comments

Comments
 (0)