Skip to content

Commit 1a69c92

Browse files
committed
Use the same style mask everywhere
1 parent 21a617a commit 1a69c92

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/react-native/React/CoreModules/RCTDevLoadingView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ - (void)showMessage:(NSString *)message color:(RCTUIColor *)color backgroundColo
130130
self->_window.rootViewController = [UIViewController new];
131131
#else // [macOS
132132
self->_window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 375, 20)
133-
styleMask:NSWindowStyleMaskBorderless
133+
styleMask:NSWindowStyleMaskBorderless | NSWindowStyleMaskFullSizeContentView
134134
backing:NSBackingStoreBuffered
135135
defer:YES];
136136
[self->_window setIdentifier:sRCTDevLoadingViewWindowIdentifier];

packages/react-native/React/CoreModules/RCTLogBoxView.mm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ - (instancetype)initWithWindow:(RCTPlatformWindow *)window surfacePresenter:(id<
7979
#if !TARGET_OS_OSX // [macOS]
8080
self = [super initWithWindowScene:window.windowScene];
8181
#else // [macOS
82-
self = [super initWithContentRect:NSMakeRect(0, 0, 600, 800) styleMask:NSWindowStyleMaskTitled backing:NSBackingStoreBuffered defer:YES];
82+
self = [super
83+
initWithContentRect:NSMakeRect(0, 0, 600, 800)
84+
styleMask:NSWindowStyleMaskBorderless | NSWindowStyleMaskFullSizeContentView
85+
backing:NSBackingStoreBuffered
86+
defer:YES];
8387
_window = window;
8488
#endif // macOS]
8589

0 commit comments

Comments
 (0)