From 5ea435cd89281dc229f7547f3b318ab5b6ab6bdf Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Fri, 31 Jul 2009 08:33:41 -0400 Subject: [PATCH] Bug 506720: Use media queries to adapt browser tools UI for portrait/landscape, r=gavin --- mobile/chrome/content/browser-ui.js | 4 - mobile/chrome/content/browser.xul | 33 ++++---- mobile/locales/en-US/chrome/browser.dtd | 2 +- mobile/locales/en-US/chrome/preferences.dtd | 1 + mobile/themes/hildon/browser.css | 83 ++++++++++++++++++- mobile/themes/wince/browser-high.css | 5 +- mobile/themes/wince/browser-low.css | 4 - mobile/themes/wince/browser.css | 91 ++++++++++++++++++++- 8 files changed, 189 insertions(+), 34 deletions(-) diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index c847ecce6c62..a92cf6ffd644 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -250,10 +250,6 @@ var BrowserUI = { document.getElementById("panel-items").selectedPanel = document.getElementById(id); }, - showPrefSection : function(id) { - document.getElementById("prefs-list").scrollBoxObject.scrollToElement(document.getElementById(id)); - }, - get toolbarH() { if (!this._toolbarH) { let toolbar = document.getElementById("toolbar-main"); diff --git a/mobile/chrome/content/browser.xul b/mobile/chrome/content/browser.xul index 6690bdb33601..5b5143862960 100644 --- a/mobile/chrome/content/browser.xul +++ b/mobile/chrome/content/browser.xul @@ -296,15 +296,14 @@ -