Skip to content

Commit

Permalink
getPos() wrong on ie6/7. Close #565, #566.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabor authored and jayarjo committed Feb 26, 2013
1 parent 5a9c3b9 commit 2a9ff92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/javascript/plupload.js
Expand Up @@ -485,7 +485,7 @@
}

// Use getBoundingClientRect on IE 6 and IE 7 but not on IE 8 in standards mode
if (node && node.getBoundingClientRect && ((navigator.userAgent.indexOf('MSIE') > 0) && (doc.documentMode < 8))) {
if (node && node.getBoundingClientRect && plupload.ua.ie && (!doc.documentMode || doc.documentMode < 8)) {
nodeRect = getIEPos(node);
rootRect = getIEPos(root);

Expand Down

0 comments on commit 2a9ff92

Please sign in to comment.