jonrohan/ZeroClipboard — pull request #57 by jonrohan (2013-01-01 04:22:22+00:00)
Title: IE6+  BUG

This bug happened in IE6/7/8/9, The feagure shows in IE console like this:(I am sorry , there are some chinese characters)

![1](https://f.cloud.github.com/assets/2204911/37122/38f4367e-53c3-11e2-9e02-85e40fe88af6.JPG)

In IE6+ browers, The method of _getStyle(obj, "borderLeftWidth") and _getStyle(obj, "borderTopWidth") will return "medium" instead of 0 when There are no border width or top in dom in fact. So _getDOMObjectPositon return "NAN" !!!

How I resovle this problem? I only delete some codes in method _getDOMObjectPosition Then all actions are sucessful.

while (obj) {
info.left += obj.offsetLeft;
// delete 1
//info.left += _getStyle(obj, "borderLeftWidth") ? parseInt(_getStyle(obj, "borderLeftWidth"), 10) : 0;
info.top += obj.offsetTop;
// delete 2
//info.top += _getStyle(obj, "borderTopWidth") ? parseInt(_getStyle(obj, "borderTopWidth"), 10) : 0;
obj = obj.offsetParent;
}

You should know this solution is not better but I can not find other methods, And Hopefully better solution!