Ticket #5067: patch.3.diff
File patch.3.diff, 1.4 KB (added by , 17 years ago) |
---|
-
Users/erichs/Documents/eclipse/django/django/contrib/admin/media/js/core.js
71 71 var curleft = 0; 72 72 if (obj.offsetParent) { 73 73 while (obj.offsetParent) { 74 curleft += obj.offsetLeft ;74 curleft += obj.offsetLeft - obj.scrollLeft; 75 75 obj = obj.offsetParent; 76 76 } 77 // IE offsetParent does not include the top-level 78 if (navigator.appName == "Microsoft Internet Explorer" && obj.parentElement){ 79 curleft += obj.offsetLeft - obj.scrollLeft; 80 } 77 81 } else if (obj.x) { 78 82 curleft += obj.x; 79 83 } … … 84 88 var curtop = 0; 85 89 if (obj.offsetParent) { 86 90 while (obj.offsetParent) { 87 curtop += obj.offsetTop ;91 curtop += obj.offsetTop - obj.scrollTop; 88 92 obj = obj.offsetParent; 89 93 } 94 // IE offsetParent does not include the top-level 95 if (navigator.appName == "Microsoft Internet Explorer" && obj.parentElement){ 96 curtop += obj.offsetTop - obj.scrollTop; 97 } 90 98 } else if (obj.y) { 91 99 curtop += obj.y; 92 100 }