From 484bed9b3518293dfab5c7e2ee6a7662874741ec Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Tue, 23 Sep 2008 01:02:51 -0500 Subject: [PATCH] =?UTF-8?q?bug=20456390=20=E2=80=93=20move=20control=20str?= =?UTF-8?q?ip=20buttons=20into=20position.=20r=3Dmfinkle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/chrome/content/browser-ui.js | 7 ++++--- mobile/chrome/content/browser.xul | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index 3265e67f76be..6bd240d66649 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -384,6 +384,8 @@ var BrowserUI = { var rect = document.getElementById("browser-container").getBoundingClientRect(); var containerW = rect.right - rect.left; var containerH = rect.bottom - rect.top; + var toolbar = document.getElementById("toolbar-main"); + var toolbarH = toolbar.boxObject.height; var browser = document.getElementById("browser"); browser.width = containerW; @@ -396,14 +398,13 @@ var BrowserUI = { tabbar.left = -tabbar.boxObject.width; panelUI.left = containerW + sidebar.boxObject.width; sidebar.left = containerW; - sidebar.height = panelUI.height = tabbar.height = containerH; + sidebar.height = tabbar.height = (panelUI.height = containerH) - toolbarH; } panelUI.width = containerW - sidebar.boxObject.width - tabbar.boxObject.width; - var toolbar = document.getElementById("toolbar-main"); var popup = document.getElementById("popup_autocomplete"); toolbar.width = containerW; - popup.height = containerH - toolbar.boxObject.height; + popup.height = containerH - toolbarH; }, init : function() { diff --git a/mobile/chrome/content/browser.xul b/mobile/chrome/content/browser.xul index ce3137358dbd..d02e629763c5 100644 --- a/mobile/chrome/content/browser.xul +++ b/mobile/chrome/content/browser.xul @@ -217,9 +217,10 @@ + - +