Ticket #5067: patch.2.diff
File patch.2.diff, 987 bytes (added by , 17 years ago) |
---|
-
Users/erichs/Documents/eclipse/django/django/contrib/admin/media/js/core.js
70 70 function findPosX(obj) { 71 71 var curleft = 0; 72 72 if (obj.offsetParent) { 73 while (obj .offsetParent) {74 curleft += obj.offsetLeft ;73 while (obj) { 74 curleft += obj.offsetLeft - obj.scrollLeft; 75 75 obj = obj.offsetParent; 76 76 } 77 77 } else if (obj.x) { … … 83 83 function findPosY(obj) { 84 84 var curtop = 0; 85 85 if (obj.offsetParent) { 86 while (obj .offsetParent) {87 curtop += obj.offsetTop ;86 while (obj) { 87 curtop += obj.offsetTop - obj.scrollTop; 88 88 obj = obj.offsetParent; 89 89 } 90 90 } else if (obj.y) {