Commit e8eab07c authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1738265 - Fix two typos in the previous patch.

MANUAL PUSH: Trivial fix CLOSED TREE
parent 787ae7b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
      var buttonbcr = document.getElementById("thebutton").getBoundingClientRect();
      var popupbcr = popup.getOuterScreenRect();
      var popupMarginLeft = parseFloat(getComputedStyle(popup).marginLeft);
      var popupMarginTop = parseFloat(getComputedStyle(popup).marginLeft);
      var popupMarginTop = parseFloat(getComputedStyle(popup).marginTop);

      ok(Math.abs(popupbcr.x - popupMarginLeft - window.mozInnerScreenX - buttonbcr.x) < 3, "x pos is correct");
      ok(Math.abs(popupbcr.y - popupMarginTop - window.mozInnerScreenY - buttonbcr.bottom) < 3, "y pos is correct");
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
    {
      var panel = document.getElementById("panel");
      var panelMarginLeft = parseFloat(getComputedStyle(panel).marginLeft);
      var panelMarginTop = parseFloat(getComputedStyle(panel).marginLeft);
      var panelMarginTop = parseFloat(getComputedStyle(panel).marginTop);
      var panelbcr = panel.getBoundingClientRect();
      var anchorbcr = document.getElementById("anchor").getBoundingClientRect();