Repect old logic in windowWillUseStandardFrame

This commit is contained in:
Cheng Zhao 2018-03-06 16:54:20 +09:00
parent 78468098c5
commit 411da169ac

View file

@ -213,8 +213,6 @@ bool ScopedDisableResize::disable_resize_ = false;
// Get preferred width from observers. Usually the page width. // Get preferred width from observers. Usually the page width.
int preferred_width = 0; int preferred_width = 0;
shell_->NotifyWindowRequestPreferredWith(&preferred_width); shell_->NotifyWindowRequestPreferredWith(&preferred_width);
if (preferred_width <= 0)
return frame;
// Never shrink from the current size on zoom. // Never shrink from the current size on zoom.
NSRect window_frame = [window frame]; NSRect window_frame = [window frame];