Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Popover: position calculation adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
driesd committed Apr 6, 2017
1 parent 999c3ac commit 6d3e95a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/popover/positionCalculation.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ const positionMiddle = (anchorPosition, targetPosition) => ({
});

const positionTop = (anchorPosition, targetPosition) => ({
top: anchorPosition.top,
arrowTop: ARROW_OFFSET,
top: anchorPosition.top - POPUP_OFFSET*.75,
arrowTop: ARROW_OFFSET*2.35,
});

const positionBottom = (anchorPosition, targetPosition) => ({
top: anchorPosition.bottom - targetPosition.height,
arrowTop: targetPosition.height - 3 * ARROW_OFFSET,
top: anchorPosition.bottom - targetPosition.height + POPUP_OFFSET*.75,
arrowTop: targetPosition.height - 4.5 * ARROW_OFFSET,
});

const directionWest = (anchorPosition, targetPosition) => ({
Expand Down

0 comments on commit 6d3e95a

Please sign in to comment.