From 411da169ac72f68614d984d05a02f4e4c0fa048a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 6 Mar 2018 16:54:20 +0900 Subject: [PATCH] Repect old logic in windowWillUseStandardFrame --- atom/browser/native_window_mac.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index d1b470002918..ba91651a029f 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -213,8 +213,6 @@ bool ScopedDisableResize::disable_resize_ = false; // Get preferred width from observers. Usually the page width. int preferred_width = 0; shell_->NotifyWindowRequestPreferredWith(&preferred_width); - if (preferred_width <= 0) - return frame; // Never shrink from the current size on zoom. NSRect window_frame = [window frame];