From 4b90c024207151efca50a861435ba533995e75be Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 11 Aug 2014 10:24:36 +0800 Subject: [PATCH] mac: Override system's default on resizing window no larger than screen. --- atom/browser/native_window_mac.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index cac5d63e020..885eb3b0f7d 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -120,6 +120,11 @@ static const CGFloat kAtomWindowCornerRadius = 4.0; shell_ = shell; } +// Enable the window to be larger than screen. +- (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen*)screen { + return frameRect; +} + - (IBAction)reload:(id)sender { shell_->GetWebContents()->GetController().ReloadIgnoringCache(false); }