Ignore:
Timestamp:
Jan 10, 2011, 4:58:04 PM (13 years ago)
Author:
cljosse
Message:

[autosize] compatiblity with gally 1.4.0

File:
1 edited

Legend:

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

    r8536 r8588  
    247247
    248248                 var Cadre = jQuery(Parent).get(0);
    249                  var info_Cadre = jQuery(Cadre).infos();
     249                 var info_theImage = jQuery(Cadre).infos();
    250250                 //===============  Information cadre ======
    251251                 var info_the_page = jQuery("#the_page").infos();
     
    331331                         img_reelle.height = info_img.height;
    332332                         info_map = jQuery("#mapPicture").infos();
    333                          marge_left = info_map.width;
    334                          jQuery("#map").css("left", marge_left + "px");
    335 
     333                         jQuery("#map").css("left", info_map.width + "px");
    336334                         Bandeau_bas.height = 10;
    337                          marge_right = 10;
    338                          img_reelle.width = winwidth - marge_left - marge_right;
     335                       
     336                         if (theme.match(RegExp("simple", "g"))) {
     337                             img_reelle.width = winwidth; //- info_map.width -marge_right;
     338                         } else {
     339                          img_reelle.width = winwidth - info_map.width -marge_right;
     340                         }
     341
     342
    339343                         info_the_page = jQuery("#the_page").infos();
     344                         winwidth = img_reelle.width;
     345
    340346                         ;
    341347
     
    820826                 jQuery("#navThumbPrev").css({ overflow: "hidden" });
    821827                 jQuery("#navThumbNext").css({ overflow: "hidden" });
     828                 n = typeof inittoolbar;
     829
    822830                 try {
    823831                     if (theme.match(RegExp("gally", "gi"))) {
    824 
     832                         if (typeof inittoolbar == "function") {
     833                             if (typeof (currentTab) == "undefined") inittoolbar();
     834                             else initializeImageMode("resize");
     835                         }
    825836                         //===========================================================================
    826                          initializeImageMode("resize");
     837
    827838                         if (jQuery("#navThumbPrev").length > 0) {
    828839                             jQuery("#navThumbPrev").css({ height: info_img.height + "px",
     
    840851                         if (Type_Img == "map")
    841852                             jQuery("#navThumbNextContainer").css({ background: 'none' });
    842 
    843 
    844 
    845                          if (!theme.match(RegExp("lapis", "gi"))) { initializeImageMode("resize"); }
     853                         if (!theme.match(RegExp("lapis", "gi"))) {
     854                             initializeImageMode("resize");
     855                         }
     856
    846857                     } else if (theme.match(RegExp("simple", "g"))) {
    847858
    848859                         jQuery("#imageToolBar").css({ position: "static" });
    849                          
     860
    850861                         info_imageInfoBar = jQuery("#imageInfoBar").infos();
    851862                         if (info_imageInfoBar.bottom < info_img.bottom) {
    852                           //   jQuery("#imageInfoBar").height(info_img.bottom);
     863                             //   jQuery("#imageInfoBar").height(info_img.bottom);
    853864                         }
    854865
Note: See TracChangeset for help on using the changeset viewer.