From 5818353ebcffc2047768396ed7d41ad6cf18558b Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Fri, 9 Feb 2018 23:20:45 -0500 Subject: [PATCH] add formula to setZoomLevel doc --- docs/api/web-contents.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index f52566fe7b92..0564dddc2345 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -831,7 +831,8 @@ Sends a request to get current zoom factor, the `callback` will be called with Changes the zoom level to the specified level. The original size is 0 and each increment above or below represents zooming 20% larger or smaller to default -limits of 300% and 50% of original size, respectively. +limits of 300% and 50% of original size, respectively. The formula for this is +`scale := 1.2 ^ level`. #### `contents.getZoomLevel(callback)`