Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


IE9: plupload.getPos returns wrong coordinates #495

gernotk opened this Issue · 0 comments

1 participant


See line plupload.js L485-493:

 if (node && node.getBoundingClientRect && (navigator.userAgent.indexOf('MSIE') > 0 && doc.documentMode !== 8)) {
     nodeRect = getIEPos(node);
     rootRect = getIEPos(root);

     return {
         x : nodeRect.x - rootRect.x,
         y : nodeRect.y - rootRect.y

In case of IE8 the code above does the right thing and does not call the legacy function 'getIEPos'. In case of IE9, however, document.documentMode evals to '9' and, hence, 'getIEPos' is called unintentionally.

So L485 should be rather like:

if (node && node.getBoundingClientRect && ((navigator.userAgent.indexOf('MSIE') > 0) && (doc.documentMode < 8))) {


@gernotk gernotk referenced this issue from a commit in gernotk/plupload
Gernot Kieseritzky fixed issue #495: IE9 plupload.getPos returns wrong coordinates bfe99c2
@gernotk gernotk closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.