mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
mac: Override system's default on resizing window no larger than screen.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user