react-native-macos 0.75.17 → 0.75.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.mm +3 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
|
@@ -134,7 +134,9 @@
|
|
|
134
134
|
CGSize textViewSize = [_backedTextInputView intrinsicContentSize];
|
|
135
135
|
NSClipView *clipView = (NSClipView *)_scrollView.contentView;
|
|
136
136
|
if (textViewSize.height > clipView.bounds.size.height) {
|
|
137
|
-
|
|
137
|
+
// 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;
|
|
138
140
|
};
|
|
139
141
|
|
|
140
142
|
return NO;
|
package/React/Base/RCTVersion.m
CHANGED