Changeset 7375 for extensions/Autosize/js
- Timestamp:
- Oct 24, 2010, 2:57:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r7369 r7375 27 27 var old_w = 0; 28 28 29 var llgboframe = jQuery("#gbo div:first"); 30 var marges_llgbo = 0; 31 if (llgboframe.length > 0) { 32 33 marges_llgbo = jQuery(llgboframe).outerWidth() - jQuery("#gbo div:last").innerWidth(); 34 } 35 29 36 30 37 //========================================================= … … 208 215 info_description.bottom = info_description.top = 1; 209 216 210 var llgboframe = jQuery("#gbo div:first");211 var marges_llgbo = 0;212 if (llgboframe.length > 0) {213 214 marges_llgbo = jQuery(llgboframe).outerWidth() - jQuery("#gbo div:last").innerWidth();215 }216 217 if (theme.match(RegExp("gally", "g"))) { 217 marges_llgbo = 0;218 marges_llgbo = 0; 218 219 } 219 220 … … 716 717 else 717 718 widthmin = parseInt(width_user); 718 719 var marges = 0; 719 720 widthmin -= Get_Val_int(info_img.borderwidth.left); 720 721 widthmin -= Get_Val_int(info_img.borderwidth.right); 721 722 if (jQuery("#gbo") && jQuery("#gbo div:first").length > 0) { 722 723 llgboframe = jQuery("#gbo div:first"); 723 marges = jQuery(llgboframe).outerWidth() - jQuery("#gbo div:last"). outerWidth();724 marges = jQuery(llgboframe).outerWidth() - jQuery("#gbo div:last").innerWidth(); 724 725 } 725 widthmin -= 2*marges;726 widthmin -= 2 * marges; 726 727 if (Image_width > widthmin) { 727 728 // Image_width largeur à atteindre … … 761 762 _width = maxWidth; 762 763 } else { 763 _width = Image_width - (marges /2);764 _width = Image_width - (marges / 2); 764 765 } 765 766 766 767 768 769 770 771 767 jQuery("#gbo").outerWidth(_width); 768 jQuery("#gbo").css("width", (_width) + "px"); 769 jQuery("#gbo").css("height", (Image_height) + "px"); 770 jQuery("#gbo").outerHeight(Image_height); 771 Image_width = jQuery("#gbo div:last").innerWidth(); 772 Image_height = parseInt(Image_width / rapport); 772 773 773 774 } else { … … 818 819 } 819 820 820 821 821 822 jQuery(Cadre).width(zone_affichage.width); 822 823 //============================================================== … … 947 948 948 949 } // function 949 ); // ready950 ); // ready 950 951 /* 951 952 *
Note: See TracChangeset
for help on using the changeset viewer.