Ignore:
Timestamp:
Jan 3, 2013, 7:38:40 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix bug init

File:
1 edited

Legend:

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

    r19166 r19764  
    472472      //==========================================================================================
    473473      init_gen();
    474 
    475 
    476474    });
    477475    //__________________window.onload_________________
     
    513511    options.valide = jQuery(".Autosize").css("display") != "none";
    514512    options.marge_haute = jQuery(".Autosize").Get_Val_int(jQuery(".Autosize").css("top"));
    515   options.marge_basse = Math.max(
     513    options.marge_basse = Math.max(
    516514  jQuery(".Autosize").Get_Val_int(jQuery(".Autosize").css("bottom")),
    517515  options.marge_basse
     
    945943
    946944        //jQuery(theMainImage_id).height(Zone_image.image.height);
     945        } else if (Type_Img == "panorama") {
     946         // jQuery("#pamoorama").width(img_finale.width);
     947         // jQuery("#pamoorama").height(img_finale.height);
     948
     949           
     950     
     951     //   jQuery("#theImage img.simple_panorama").panorama(asp_options);
    947952      } else {
    948953        if (options.imageAutosize == false)
    949954          if (options.pictureSelType == "Autosize" || options.pictureSelType == "SelMaxi") {
    950             jQuery(theMainImage_id).height(Zone_image.image.height );
     955            jQuery(theMainImage_id).height(Zone_image.image.height);
    951956            jQuery(theMainImage_id).width(Zone_image.image.width);
    952            
    953             jQuery(theMainImage_id).css("margin-top", options.marge_haute );
     957
     958            jQuery(theMainImage_id).css("margin-top", options.marge_haute);
    954959
    955960          } else {
     
    11311136    *      pamoorama
    11321137    ******************************/
    1133 
     1138   
     1139   
    11341140    jQuery("#pamoorama").bind("on", function () { alert($(this).text()); });
    11351141    jQuery("#pamoorama").bind("on", function (e) {
     
    17531759      if (!options.check_desc_v)
    17541760        options.marge_bottom_2 = 0;
    1755      
     1761
    17561762
    17571763      marge_bottom = options.marge_bottom_2 + options.marge_bottom;
     
    18661872          infos_theImage = jQuery(theMainImage_id).infos();
    18671873          infos_the_page = jQuery("#the_page").infos();
     1874          if (typeof img_finale == "undefined") img_finale = { width: Zone_image.image.width, height: Zone_image.image.height };
     1875
    18681876          img_finale.height = infos_theImage.height;
    18691877          break
     
    19391947        mxi = Math.ceil(Zone_image.image.height + Zone_image.marges.height);
    19401948        Zone_image.container.height = Math.max(Zone_image.container.height, mxi);
     1949      } else {
     1950
     1951
    19411952      }
    19421953      img_finale = { width: Zone_image.image.width, height: Zone_image.image.height };
     1954
    19431955      return true;
    19441956    }
     
    22742286
    22752287
    2276   });                                                                                                                // ready
     2288  });                                                                                                                   // ready
    22772289
    22782290
Note: See TracChangeset for help on using the changeset viewer.