Skip to content

Commit 0b6e407

Browse files
committed
[Mac] Fix nwjs#1043: don't constrian window frame
1 parent f7e4bb6 commit 0b6e407

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/browser/native_window_mac.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ - (void)closeAllWindows:(id)sender {
230230
api::App::CloseAllWindows();
231231
}
232232

233+
- (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)screen
234+
{
235+
return frameRect;
236+
}
237+
233238
@end
234239

235240
@interface ShellFramelessNSWindow : ShellNSWindow

0 commit comments

Comments
 (0)