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

Commit f62fd48

Browse files
author
Robert Messerle
committed
fix(tooltip): fixes positioning bug in Safari
Closes #1883
1 parent e86b3c3 commit f62fd48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/util/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ angular.module('material.core')
3333
offsetParent.getBoundingClientRect() :
3434
{ left: 0, top: 0, width: 0, height: 0 };
3535
return {
36-
left: nodeRect.left - offsetRect.left + offsetParent.scrollLeft,
37-
top: nodeRect.top - offsetRect.top + offsetParent.scrollTop,
36+
left: nodeRect.left - offsetRect.left,
37+
top: nodeRect.top - offsetRect.top,
3838
width: nodeRect.width,
3939
height: nodeRect.height
4040
};

0 commit comments

Comments
 (0)