ded / bonzo

library agnostic, extensible DOM utility
Other
1.32k stars 137 forks source link

offset() returns wrong values when any offsetParent is positioned #72

Open RwwL opened 12 years ago

RwwL commented 12 years ago

Demonstration at http://jsfiddle.net/2NA6E/3/ — when any offsetParent in the chain checked by offset() is positioned, its border-widths wind up subtracted from the final offset value that's calculated and returned.