From a7352e57d52cf629b89d2653086b54ae479e97fd Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Mon, 2 Apr 2018 15:20:13 -0700 Subject: [PATCH] WebFrame.setVisualZoomLevelLimits sets user-agent scale constraints (#12488) Fixes #11216. --- atom/renderer/api/atom_api_web_frame.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/atom/renderer/api/atom_api_web_frame.cc b/atom/renderer/api/atom_api_web_frame.cc index 9959e20daeb1..68eba2043735 100644 --- a/atom/renderer/api/atom_api_web_frame.cc +++ b/atom/renderer/api/atom_api_web_frame.cc @@ -159,6 +159,7 @@ double WebFrame::GetZoomFactor() const { void WebFrame::SetVisualZoomLevelLimits(double min_level, double max_level) { web_frame_->View()->SetDefaultPageScaleLimits(min_level, max_level); + web_frame_->View()->SetIgnoreViewportTagScaleLimits(true); } void WebFrame::SetLayoutZoomLevelLimits(double min_level, double max_level) {