From dbe1f326d4ddc940c17c0c9f6495ab95c4e93078 Mon Sep 17 00:00:00 2001 From: Taras Glek Date: Mon, 10 Nov 2008 11:15:25 -0800 Subject: [PATCH] bug 463538: avoid superfluous resizes --- mobile/chrome/content/browser-ui.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index c2c48f84357..fac9a049fc1 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -444,6 +444,9 @@ var BrowserUI = { }, _sizeControls : function(aEvent) { + if (window != aEvent.target) { + return + } var rect = document.getElementById("browser-container").getBoundingClientRect(); var containerW = rect.right - rect.left; var containerH = rect.bottom - rect.top; @@ -453,12 +456,10 @@ var BrowserUI = { var sidebar = document.getElementById("browser-controls"); var panelUI = document.getElementById("panel-container"); var tabbar = document.getElementById("tab-list-container"); - if (window == aEvent.target) { - tabbar.left = -tabbar.boxObject.width; - panelUI.left = containerW + sidebar.boxObject.width; - sidebar.left = containerW; - sidebar.height = tabbar.height = (panelUI.height = containerH) - toolbarH; - } + tabbar.left = -tabbar.boxObject.width; + panelUI.left = containerW + sidebar.boxObject.width; + sidebar.left = containerW; + sidebar.height = tabbar.height = (panelUI.height = containerH) - toolbarH; panelUI.width = containerW - sidebar.boxObject.width - tabbar.boxObject.width; var popup = document.getElementById("popup_autocomplete");