Skip to content

Commit 0e9ad41

Browse files
lenaicNick
andcommitted
[Fabric] Fix scroll views hiding content underneath them in Fabric. (microsoft#1820)
* Fix scroll views hiding content underneath them in Fabric. * Clean up Paper scroll view after shim scroll view fix. --------- Co-authored-by: Nick <lefever@meta.com>
1 parent 96d9d78 commit 0e9ad41

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

React/Base/macOS/RCTUIKit.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ - (instancetype)initWithFrame:(CGRect)frame
451451
{
452452
if (self = [super initWithFrame:frame]) {
453453
self.scrollEnabled = YES;
454+
self.drawsBackground = NO;
454455
}
455456

456457
return self;

React/Views/ScrollView/RCTScrollView.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ - (instancetype)initWithEventDispatcher:(id<RCTEventDispatcherProtocol>)eventDis
476476
_scrollView.delegate = self;
477477
_scrollView.delaysContentTouches = NO;
478478
#else // [macOS
479-
_scrollView.drawsBackground = NO;
480479
_scrollView.postsBoundsChangedNotifications = YES;
481480
_lastScrollPosition = NSZeroPoint;
482481
#endif // macOS]

0 commit comments

Comments
 (0)