fix page zoom level
authorBenjamin Stover <bstover@mozilla.com>
Thu, 02 Sep 2010 16:19:20 -0700
changeset 1986 0cf2c18d2fe4bbf0058030f5efe55235a0754d5d
parent 1985 59005d14015cdbf21ecf712b8b323ab6168d3d33
child 1987 3dfec19150148589917e3572a56eb3a19f4b6f5d
push id1714
push userdougt@mozilla.com
push dateThu, 16 Sep 2010 02:04:21 +0000
fix page zoom level
chrome/content/browser.js
--- a/chrome/content/browser.js
+++ b/chrome/content/browser.js
@@ -2402,17 +2402,17 @@ Tab.prototype = {
     let threshold = 1 - 1 / granularity;
     if (threshold < pageZoom && pageZoom < 1)
       pageZoom = 1;
 
     return this.clampZoomLevel(pageZoom);
   },
 
   getPageZoomLevel: function getPageZoomLevel() {
-    let browserW = this._browser.viewportWidthInCSSPx;
+    let browserW = this._browser._viewportWidthInCSSPx;
     return this._browser.getBoundingClientRect().width / browserW;
   },
 
   get allowZoom() {
     return this.metaData.allowZoom;
   },
 
   updateThumbnail: function updateThumbnail() {