diff --git a/browser/metro/base/content/ContentAreaObserver.js b/browser/metro/base/content/ContentAreaObserver.js index ab77eb28cee6..15b0161226ec 100644 --- a/browser/metro/base/content/ContentAreaObserver.js +++ b/browser/metro/base/content/ContentAreaObserver.js @@ -5,7 +5,7 @@ /* * ContentAreaObserver manages tracking the viewable area within the browser. * It also handles certain tasks like positioning of input elements within - * content when the viewable area changes. + * content when the viewable area changes. * * ContentAreaObserver creates styles that content can apply and also fires * events when things change. The 'width' and 'height' properties of the @@ -171,13 +171,10 @@ var ContentAreaObserver = { updateAppBarPosition: function updateAppBarPosition(aForceDown) { // Adjust the app and find bar position above the soft keyboard - let navBar = document.getElementById("navbar"); - let contextAppBar = document.getElementById("contextappbar"); - let findBar = document.getElementById("content-navigator"); let keyboardHeight = aForceDown ? 0 : MetroUtils.keyboardHeight; - navBar.style.bottom = keyboardHeight + "px"; - contextAppBar.style.bottom = keyboardHeight + "px"; - findBar.style.bottom = keyboardHeight + "px"; + Elements.navbar.style.bottom = keyboardHeight + "px"; + Elements.contextappbar.style.bottom = keyboardHeight + "px"; + Elements.findbar.style.bottom = keyboardHeight + "px"; }, /* diff --git a/browser/metro/base/content/browser-ui.js b/browser/metro/base/content/browser-ui.js index d21f72037bbe..28511d0d1330 100644 --- a/browser/metro/base/content/browser-ui.js +++ b/browser/metro/base/content/browser-ui.js @@ -43,10 +43,10 @@ let Elements = {}; ["browsers", "browsers"], ["navbar", "navbar"], ["contextappbar", "contextappbar"], + ["findbar", "findbar"], ["contentViewport", "content-viewport"], ["progress", "progress-control"], ["progressContainer", "progress-container"], - ["contentNavigator", "content-navigator"], ].forEach(function (aElementGlobal) { let [name, id] = aElementGlobal; XPCOMUtils.defineLazyGetter(Elements, name, function() { diff --git a/browser/metro/base/content/browser.xul b/browser/metro/base/content/browser.xul index 618da0e0ba68..c52fe87b469e 100644 --- a/browser/metro/base/content/browser.xul +++ b/browser/metro/base/content/browser.xul @@ -250,15 +250,6 @@ - - - -