From 09de0c2766b3c8e4340f1f6f14bfb4e80faf866a Mon Sep 17 00:00:00 2001 From: leethomas Date: Sun, 22 May 2016 17:22:57 -0700 Subject: [PATCH] call base SetAspectRatio in NativeWindowMac implementation --- atom/browser/native_window_mac.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 264cab5fe739..3bd3ed1b995a 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -708,12 +708,13 @@ bool NativeWindowMac::IsResizable() { void NativeWindowMac::SetAspectRatio(double aspect_ratio, const gfx::Size& extra_size) { + NativeWindow::SetAspectRatio(aspect_ratio, extra_size); // We can't just pass the aspect ratio to Cocoa, since our API receives // it as a float, and Cocoa expects an NSRect with explicit width & height // arguments. Instead we derive those args ourselves from the given aspect // ratio. - + gfx::Size windowSize = this->GetSize(); gfx::Size contentSize = this->GetContentSize();