Changeset 12660 for extensions


Ignore:
Timestamp:
Nov 27, 2011, 1:06:59 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with theme hr_os_xl

Location:
extensions/Autosize/js
Files:
2 edited

Legend:

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

    r12652 r12660  
    760760             case "embed":
    761761               //
    762 
     762               if (info_img.width == 0)
     763                 info_img = jQuery("#thePicturePage").infos();
     764               if (info_img.width == 0)
     765                 info_img = jQuery("#the_page").infos();
    763766               info_theImage = info_img;
    764767               info_the_page = jQuery("#the_page").infos();
     768               Bandeau_bas.height = Bandeau_bas.top;
     769
     770               iph1 = jQuery("#theImage div").infos();
     771               if ((winheight - iph1.bottom)>0)
     772               Bandeau_bas.height =(winheight - iph1.bottom) + 50;
     773               else
     774               Bandeau_bas.height = 50;
     775
    765776
    766777               if (rapport < 0) {
    767778                 img_height = info_img.height;
    768779                 img_width = info_img.width;
    769 
    770780                 img_reelle.height = img_height;
    771781                 img_reelle.width = img_width;
    772 
    773782               }
    774783
    775784               break
    776785             case "charlie":
    777 
    778 
    779786               info_theImage = info_img;
    780787               info_the_page = jQuery("#the_page").infos();
     
    787794               }
    788795               break
     796
     797
    789798             case "pamoorama":
    790799
     
    842851
    843852           img_reelle.width = parseInt(img_reelle.width);
    844            // jQuery(Cadre).width(mini_width); 1.6.2
    845 
    846853
    847854           if (img_reelle.width < mini_width) {
     
    862869
    863870           if (rapport < 0) {
    864 
    865871             img_init.height = parseInt(img_height);
    866872             img_init.width = parseInt(img_width);
     
    913919           } else if (theme.match(RegExp("gally", "g"))) {
    914920             correction += 0; //??
    915 
     921           } else if (theme.match(RegExp("os", "g"))) {
     922             correction += 0; //??
    916923           }
    917924
     
    11121119           img_finale.width = parseInt(img_finale.width);
    11131120           //=========================================================================
    1114 
    11151121           //=== cadre = theImage
    11161122           jQuery(Cadre).css({ marginLeft: "auto" });
     1123           if (theme.match(RegExp("sobre", "gi")) || theme.match(RegExp("hr_", "gi")) || theme.match(RegExp("Mont", "gi"))) {
     1124             jQuery(Cadre).css("width", "auto");
     1125           } else {
    11171126           jQuery(Cadre).width(Zone_Affichage.width); //centrer simple black
    1118            // jQuery(Cadre).css("width", "auto");
     1127
     1128           }
     1129           // ;
    11191130
    11201131           if (Type_Img == "panorama" || Type_Img == "pamoorama") {
     
    13601371           }
    13611372           zoom = img_finale.height / img_height;
     1373           h0 = jQuery("#content").height();
     1374           if (h0 == null) {
     1375             h0 = winheight - Zone_Affichage.top;
     1376           }
     1377           h1 = (h0 - img_finale.height) / 2;
     1378           //  jQuery(Parent).css({ marginTop: h1 + "px" });
    13621379
    13631380           zoom = parseInt(zoom * 100);
     
    14121429             info_theImageBox = jQuery(Parent).infos(); //theImage
    14131430           }
    1414 
    14151431           info_theImageBox.margin.margin = info_frame.margin.margin;
    14161432           info_theImageBox.top = t1;
  • extensions/Autosize/js/conflit.js

    r12527 r12660  
    66//==============================================================================
    77browser = detect_browser();
     8image_w = 600;
     9image_h = 400
     10
    811function detect_browser() {
    912
Note: See TracChangeset for help on using the changeset viewer.