Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/js/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ class ReactTooltip extends React.Component {
})
}
else if(this.state.effect === "solid"){
let targetTop = e.target.getBoundingClientRect().top;
let targetLeft = e.target.getBoundingClientRect().left;
const boundingClientRect = e.target.getBoundingClientRect()
let targetTop = boundingClientRect.top;
let targetLeft = boundingClientRect.left;
let node = React.findDOMNode(this);
let tipWidth = node.clientWidth;
let tipHeight = node.clientHeight;
Expand Down