Ticket #5067: patch.2.diff

File patch.2.diff, 987 bytes (added by Erich Schmid <erichs@…>, 17 years ago)

updated path with fix for IE7

  • Users/erichs/Documents/eclipse/django/django/contrib/admin/media/js/core.js

     
    7070function findPosX(obj) {
    7171    var curleft = 0;
    7272    if (obj.offsetParent) {
    73         while (obj.offsetParent) {
    74             curleft += obj.offsetLeft;
     73        while (obj) {
     74            curleft += obj.offsetLeft - obj.scrollLeft;
    7575            obj = obj.offsetParent;
    7676        }
    7777    } else if (obj.x) {
     
    8383function findPosY(obj) {
    8484    var curtop = 0;
    8585    if (obj.offsetParent) {
    86         while (obj.offsetParent) {
    87             curtop += obj.offsetTop;
     86        while (obj) {
     87            curtop += obj.offsetTop - obj.scrollTop;
    8888            obj = obj.offsetParent;
    8989        }
    9090    } else if (obj.y) {
Back to Top