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

Commit

Permalink
fix(tooltip): fixes positioning bug in Safari
Browse files Browse the repository at this point in the history
Closes #1883
  • Loading branch information
Robert Messerle committed Mar 24, 2015
1 parent e86b3c3 commit f62fd48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ angular.module('material.core')
offsetParent.getBoundingClientRect() :
{ left: 0, top: 0, width: 0, height: 0 };
return {
left: nodeRect.left - offsetRect.left + offsetParent.scrollLeft,
top: nodeRect.top - offsetRect.top + offsetParent.scrollTop,
left: nodeRect.left - offsetRect.left,
top: nodeRect.top - offsetRect.top,
width: nodeRect.width,
height: nodeRect.height
};
Expand Down

0 comments on commit f62fd48

Please sign in to comment.