Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ - (instancetype)initWithFrame:(CGRect)frame
// because this attribute affects a position of vertical scrollbar; we don't want this
// scrollbar flip because we also flip it with whole `UIScrollView` flip.
self.semanticContentAttribute = UISemanticContentAttributeForceLeftToRight;
#else // [macOS
// Similar to iOS's contentInsetAdjustmentBehavior fix
// For example: When using NSWindowStyleMaskFullSizeContentView (hidden title bar) and ScrollView as root,
// NSScrollView.automaticallyAdjustsContentInsets (default YES) adds contentInset.top to push content below the toolbar.
// However, React Native doesn't know about this native contentInset adjustments,causing some caltulation issues
self.automaticallyAdjustsContentInsets = NO;
#endif // [macOS]

__weak __typeof(self) weakSelf = self;
Expand Down