Skip to content

Commit

Permalink
Added fix for safari 4 positioning when text is zoomed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mathews committed Aug 12, 2009
1 parent 2fb9def commit 622f06f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dom/dom.js
Expand Up @@ -2554,7 +2554,8 @@
docScrollPos = scrollPos();

//this is simple(r) if we can use 'getBoundingClientRect'
if (elm.getBoundingClientRect) {
// Sorry but the sooper dooper simple(r) way is not accurate in Safari 4
if (!glow.env.webkit && elm.getBoundingClientRect) {
var rect = elm.getBoundingClientRect();
return {
top: rect.top
Expand Down

0 comments on commit 622f06f

Please sign in to comment.