Skip to content

Commit

Permalink
Fix calculation error in FF3 that broke base.rhtml test
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jolley committed Aug 11, 2008
1 parent 65afe0d commit a506bd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions foundation/utils.js
Expand Up @@ -223,6 +223,14 @@ SC.mixin(
}
valueL += left; valueT += top ;
}

// In FireFox 3 -- the offsetTop/offsetLeft subtracts the clientTop/
// clientLeft of the offset parent.
var offsetParent = element.offsetParent ;
if ((SC.Platform.Firefox >= 3) && offsetParent) {
valueT -= offsetParent.clientTop ;
valueL -= offsetParent.clientLeft;
}
}

// Safari fix
Expand Down

0 comments on commit a506bd7

Please sign in to comment.