Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
fix(Tooltip): update method to get left and top position
Browse files Browse the repository at this point in the history
  • Loading branch information
Graphmaxer committed Oct 21, 2020
1 parent 44202fe commit a12cbeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
};
const calculateLeft = () => {
const activatorLeft = activator.offsetLeft;
const activatorLeft = activator.getBoundingClientRect().x + scrollX;
let calculatedLeft = 0;
if (top || bottom) {
Expand All @@ -70,7 +70,7 @@
};
const calculateTop = () => {
const activatorTop = activator.offsetTop;
const activatorTop = activator.getBoundingClientRect().y + scrollY;
let calculatedTop = 0;
if (top || bottom) {
Expand Down

0 comments on commit a12cbeb

Please sign in to comment.