Skip to content

Commit

Permalink
Bug 1393406 - Fix OSX autocomplete positioning. r=dao
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 1zohvu5Zv2G

--HG--
extra : rebase_source : 9a7b54593394efddaa7ed085b5a78e28b5d829a6
  • Loading branch information
daleharvey committed Sep 11, 2017
1 parent 86c4053 commit 4476353
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions browser/base/content/urlbarBindings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
]]></body>
</method>
Expand Down

0 comments on commit 4476353

Please sign in to comment.