From 12d1aa8f4dd746ae48a4ff901fad9b01e09a304b Mon Sep 17 00:00:00 2001 From: Philipp von Weitershausen Date: Wed, 15 Jun 2011 11:11:51 +0200 Subject: [PATCH] Back out bug 664114 (changeset b9ee105d755c) due to test_innerWidthHeight_script.html failure --- mobile/chrome/content/MenuListHelperUI.js | 5 ++--- mobile/chrome/content/browser.xul | 2 +- mobile/chrome/content/common-ui.js | 5 ++--- mobile/themes/core/browser.css | 8 -------- mobile/themes/core/defines.inc | 2 -- mobile/themes/core/gingerbread/browser.css | 13 ------------- mobile/themes/core/gingerbread/defines.inc | 2 -- mobile/themes/core/gingerbread/platform.css | 8 ++++---- mobile/themes/core/platform.css | 2 +- 9 files changed, 10 insertions(+), 37 deletions(-) diff --git a/mobile/chrome/content/MenuListHelperUI.js b/mobile/chrome/content/MenuListHelperUI.js index d384c2fca84c..892660088f8f 100644 --- a/mobile/chrome/content/MenuListHelperUI.js +++ b/mobile/chrome/content/MenuListHelperUI.js @@ -59,8 +59,8 @@ var MenuListHelperUI = { } window.addEventListener("resize", this, true); - this.sizeToContent(); container.hidden = false; + this.sizeToContent(); BrowserUI.pushPopup(this, [this._popup]); }, @@ -86,8 +86,7 @@ var MenuListHelperUI = { }, sizeToContent: function sizeToContent() { - let style = document.defaultView.getComputedStyle(this._container, null); - this._popup.width = window.innerWidth - (parseInt(style.paddingLeft) + parseInt(style.paddingRight)); + this._popup.width = window.innerWidth * 0.8; }, handleEvent: function handleEvent(aEvent) { diff --git a/mobile/chrome/content/browser.xul b/mobile/chrome/content/browser.xul index a784a645b36e..8bf3d4923ba9 100644 --- a/mobile/chrome/content/browser.xul +++ b/mobile/chrome/content/browser.xul @@ -597,7 +597,7 @@ -