diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index 6b8f57b4..54424823 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -707,7 +707,13 @@ TreeStyleTabBrowserAutoHide.prototype = { getZoomForFrame : function(aFrame) { - var zoom = this.rootContentViewer.fullZoom; + var zoom = aFrame + .QueryInterface(Components.interfaces.nsIInterfaceRequestor) + .getInterface(Components.interfaces.nsIWebNavigation) + .QueryInterface(Components.interfaces.nsIDocShell) + .contentViewer + .QueryInterface(Components.interfaces.nsIMarkupDocumentViewer) + .fullZoom; return (zoom * 1000 % 1) ? zoom+0.025 : zoom ; },