Ignore:
Timestamp:
Oct 25, 2012, 3:24:09 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (option marge bottom)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/autosizeDetect.js

    r18716 r18735  
    1515    myHeight = document.body.clientHeight;
    1616  }
    17   myWidth =parseInt( myWidth);
    18   myHeight = parseInt(myHeight);
     17  windowWidth =parseInt( myWidth);
     18  windowHeight = parseInt(myHeight);
    1919
    20   jQuery.cookie('windowHeight', myWidth, { path: COOKIE_PATH  });
    21   jQuery.cookie('windowWidth', myHeight, { path: COOKIE_PATH });
     20  theImageRight = 2;
     21  theImageLeft=261;
     22  theImageMargeWidth=0;
    2223
    23   jQuery.cookie('theImageHeight', myHeight, { path: COOKIE_PATH });
    24   jQuery.cookie('theImageWidth', myWidth, { path: COOKIE_PATH });
     24  theImageTop =73;
     25  theImageBottom = 0;
     26  theImageMargeHeight=0;
     27  jQuery.cookie('windowHeight', myHeight, { path: COOKIE_PATH  });
     28  jQuery.cookie('windowWidth', myWidth, { path: COOKIE_PATH });
    2529
    26   jQuery.cookie('theImageHeight', theMainImageHeight, { path: COOKIE_PATH });
    27   jQuery.cookie('theImageWidth', theMainImageWidth, { path: COOKIE_PATH });
     30  jQuery.cookie('theImageRight', theImageRight, { path: COOKIE_PATH  });
     31  jQuery.cookie('theImageLeft',theImageLeft, { path: COOKIE_PATH  });
     32  jQuery.cookie('theImageMargeWidth',theImageMargeWidth, { path: COOKIE_PATH  });
    2833
     34  jQuery.cookie('theImageTop',theImageTop, { path: COOKIE_PATH  });
     35  jQuery.cookie('theImageBottom',theImageBottom, { path: COOKIE_PATH  });
     36  jQuery.cookie('theImageMargeHeight', theImageMargeHeight, { path: COOKIE_PATH });
     37/*
     38  theImageWidth = windowWidth - theImageRight - theImageLeft - theImageMargeWidth;
     39  theImageHeight = windowHeight - theImageTop - theImageBottom - theImageMargeHeight;
     40  jQuery.cookie('theImageHeight', theImageHeight, { path: COOKIE_PATH });
     41  jQuery.cookie('theImageWidth', theImageWidth, { path: COOKIE_PATH });
     42  jQuery.cookie('theMainImageHeight', theMainImageHeight, { path: COOKIE_PATH });
     43  jQuery.cookie('theMainImage', theMainImageWidth, { path: COOKIE_PATH });
     44*/
    2945
    3046  jQuery.cookie('autosize_reload', "ok", { path: COOKIE_PATH });
Note: See TracChangeset for help on using the changeset viewer.