From a991570677c75ecec727ffdaad1c2b7710133aa2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 27 Oct 2016 11:56:41 -0700 Subject: [PATCH] intrinsicWidth -> pageWidth --- atom/browser/native_window_mac.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index d0ea0b72c7e5..fcf4bd5e7350 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -117,13 +117,12 @@ bool ScopedDisableResize::disable_resize_ = false; if (!web_contents) return frame; - CGFloat intrinsicWidth = static_cast( + CGFloat pageWidth = static_cast( web_contents->GetPreferredSize().width()); - NSRect currentFrame = [window frame]; // Never shrink from the current size on zoom. - CGFloat zoomedWidth = std::max(intrinsicWidth, NSWidth(currentFrame)); + CGFloat zoomedWidth = std::max(pageWidth, NSWidth(currentFrame)); // |frame| determines our maximum extents. We need to set the origin of the // frame -- and only move it left if necessary.