We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cc0520 commit 0df1000Copy full SHA for 0df1000
packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.mm
@@ -134,7 +134,9 @@ - (BOOL)shouldShowVerticalScrollbar
134
CGSize textViewSize = [_backedTextInputView intrinsicContentSize];
135
NSClipView *clipView = (NSClipView *)_scrollView.contentView;
136
if (textViewSize.height > clipView.bounds.size.height) {
137
- return YES;
+ // Sometimes dimensions returned are in floating point numbers.
138
+ // If the floats are close enough, then don't show the scrollbar even if there is a fraction of overflow with the text.
139
+ return fabs(textViewSize.height - clipView.bounds.size.height) >= 1;
140
};
141
142
return NO;
0 commit comments