intrinsicWidth -> pageWidth
This commit is contained in:
parent
d4ba5b4638
commit
a991570677
1 changed files with 2 additions and 3 deletions
|
@ -117,13 +117,12 @@ bool ScopedDisableResize::disable_resize_ = false;
|
|||
if (!web_contents)
|
||||
return frame;
|
||||
|
||||
CGFloat intrinsicWidth = static_cast<CGFloat>(
|
||||
CGFloat pageWidth = static_cast<CGFloat>(
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue