From 44763532bd8385c87203777e2a03bbce7ee60542 Mon Sep 17 00:00:00 2001 From: Dale Harvey Date: Mon, 11 Sep 2017 16:21:12 +0100 Subject: [PATCH] Bug 1393406 - Fix OSX autocomplete positioning. r=dao MozReview-Commit-ID: 1zohvu5Zv2G --HG-- extra : rebase_source : 9a7b54593394efddaa7ed085b5a78e28b5d829a6 --- browser/base/content/urlbarBindings.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml index 5c2eea15537e5..7df676b91904f 100644 --- a/browser/base/content/urlbarBindings.xml +++ b/browser/base/content/urlbarBindings.xml @@ -1943,9 +1943,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. // Position the popup below the navbar. To get the y-coordinate, // which is an offset from the bottom of the input, subtract the // bottom of the navbar from the buttom of the input. - let yOffset = + let yOffset = Math.round( this.DOMWindowUtils.getBoundsWithoutFlushing(document.getElementById("nav-bar")).bottom - - this.DOMWindowUtils.getBoundsWithoutFlushing(aInput).bottom; + this.DOMWindowUtils.getBoundsWithoutFlushing(aInput).bottom); + this.openPopup(aElement, "after_start", 0, yOffset, false, false); ]]>