Changeset 16638 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Jul 12, 2012, 12:33:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r16624 r16638 377 377 var winwidth = infos_body.width; 378 378 var winheight = infos_body.height; 379 nds = jQuery("#imageInfos").css("display"); //inline-block //block simple380 nds1 = jQuery("#menubar").css("display"); //inline381 379 if (Type_Img == "pamoorama") { 382 380 theMainImage_obj = "#pamoorama"; 383 } 384 Zone_image = Calcul_Image(nds == "none"); 381 Zone_image = Calcul_Image(infos_imageInfos.visible == false); 382 } else { 383 Zone_image = Calcul_Image(infos_imageInfos.visible == false); 384 } 385 385 //================================================================= 386 386 old_window = jQuery(window).infos(); … … 577 577 jQuery(theMainImage_obj).height(Zone_image.image.height); 578 578 jQuery(theMainImage_obj).width(Zone_image.image.width); 579 579 580 return true; 580 581 … … 1194 1195 //============================================================= 1195 1196 infos_pamoorama = jQuery("#pamoorama").infos(); 1196 new_width = infos_pamoorama.width - (infos_pamoorama.borderwidth.left + infos_pamoorama.borderwidth.right);1197 Zone_image = Calcul_Image(false);1198 Set_Pamoorama();1199 1197 if (Math.abs(infos_pamoorama.height) < 50) { 1200 1198 setTimeout("Wait_pamoorama()", 500); … … 1203 1201 nopano = true; 1204 1202 theMainImage_obj = "#pamoorama"; 1203 1205 1204 } 1206 1205 } // Wait_pamoorama … … 1566 1565 if (!nopano) { 1567 1566 Wait_pamoorama(); 1567 1568 1568 } 1569 1569 infos_img = jQuery(theMainImage_obj).infos(); 1570 1570 infos_footer = jQuery("#pamoorama_footer").infos(); 1571 1572 1571 infos_img.height += parseInt(infos_img.height) + parseInt(infos_footer.height); 1573 1572 … … 1809 1808 th = infos_body.height; 1810 1809 tw = infos_body.width; 1811 1812 nds = jQuery("#imageInfos").css("display"); //inline-block 1813 Zone_image = Calcul_Image( nds == "none");1810 infos_imageInfos 1811 1812 Zone_image = Calcul_Image(infos_imageInfos.visible == false); 1814 1813 n0 = 0; 1815 1814 n1 = 0; … … 1882 1881 } 1883 1882 1884 1883 Zone_image = Calcul_Image(infos_imageInfos.visible == false); 1885 1884 infos_pamoorama = jQuery("#pamoorama").infos(); 1886 1885 infos_pamoorama_outter = jQuery("#pamoorama_outter").infos(); … … 2078 2077 } 2079 2078 2080 retrait_w = Math.ceil(infos_theImage.margin.left 2081 + infos_theImage.margin.right 2082 + infos_theImage.borderwidth.left 2083 + infos_theImage.borderwidth.right 2084 + infos_theImage.padding.left 2085 + infos_theImage.padding.right); 2086 2087 2088 retrait_w += Math.ceil(infos_the_page.margin.left 2089 + infos_the_page.margin.right 2090 + infos_the_page.borderwidth.left 2091 + infos_the_page.borderwidth.right 2092 + infos_the_page.padding.left 2093 + infos_the_page.padding.right); 2094 2095 retrait_w += Math.ceil(infos_body.margin.left + 2096 infos_body.margin.right); 2097 2098 retrait_w += Math.ceil(infos_content.margin.left + 2099 infos_content.margin.right); 2079 retrait_w = Math.ceil(infos_theImage.general.marges.width 2080 2081 ); 2082 2083 2084 retrait_w += Math.ceil(infos_the_page.general.marges.width 2085 2086 ); 2087 2088 retrait_w += Math.ceil(infos_body.general.marges.width); 2089 2090 retrait_w += Math.ceil(infos_content.general.marges.width); 2100 2091 2101 2092 2102 2093 pos_top = Math.ceil(infos_theImageAndInfos.top 2103 + infos_theImageAndInfos.margin.top 2104 + infos_content.borderwidth.top 2105 + infos_content.borderwidth.bottom 2106 + infos_content.margin.top 2107 + infos_content.margin.bottom); 2094 + infos_theImageAndInfos.general.marges.height 2095 ); 2108 2096 2109 2097 retrait_h = Math.ceil(pos_top 2110 2098 + infos_theImage.margin.top 2111 + infos_theImage.margin.bottom 2112 + infos_theImage.borderwidth.top 2113 + infos_theImage.borderwidth.bottom 2114 + infos_theImage.padding.top 2115 + infos_theImage.padding.bottom); 2099 + infos_theImage.general.marges.height 2100 ); 2116 2101 2117 2102 … … 2120 2105 }); 2121 2106 2122 retrait_img = Math.ceil(infos_theMainImage.borderwidth.left 2123 + infos_theMainImage.borderwidth.right 2124 + infos_theMainImage.padding.left 2125 + infos_theMainImage.padding.right); 2126 retrait_img += Math.ceil(infos_llgbo.borderwidth.right + infos_llgbo.borderwidth.right); 2127 2107 retrait_img = Math.ceil( 2108 infos_theMainImage.general.marges.width 2109 ); 2110 retrait_img += Math.ceil( 2111 infos_llgbo.borderwidth.left 2112 + infos_llgbo.borderwidth.right 2113 ); 2114 2115 retrait_img += Math.ceil( 2116 infos_the_page.general.marges.width 2117 ); 2128 2118 2129 2119 2130 2120 2131 2121 // menuSwitcherwidth+padding 2122 2132 2123 2133 2124 if (theme.match(RegExp("elegant", "gi"))) { 2134 2125 if (all_width != true) { 2135 new_width = Math.ceil( 2136 infos_imageInfos.width + 2137 infos_imageInfos.borderwidth.left + 2138 infos_imageInfos.borderwidth.right + 2139 infos_imageInfos.margin.left + 2140 infos_imageInfos.borderwidth.right + 2141 infos_imageInfos.padding.left + 2142 infos_imageInfos.padding.right); 2143 2126 marge_right = infos_imageInfos.general.width; 2144 2127 } else { 2145 new_width = 0; 2146 } 2147 width_theImage = (infos_body.width - new_width) 2148 retrait_w += 20; //??? 2128 marge_right = 0; 2129 } 2130 2131 wx1 = infos_theImage.general.width; 2132 width_theImage = (infos_body.width - marge_right - 1) 2133 2149 2134 2150 2135 } else if (theme.match(RegExp("stripped", "gi"))) { … … 2159 2144 marginLeft = infos_content.margin.left; 2160 2145 infos_menubar_dl = jQuery("#menubar dl").infos(); 2161 marginLeft = infos_menubar_dl.margin.left + infos_menubar_dl.left + infos_menubar_dl.width; 2146 marginLeft = infos_menubar_dl.margin.left 2147 + infos_menubar_dl.left 2148 + infos_menubar_dl.width; 2162 2149 if (infos_menubar_dl.visible == "false") 2163 2150 if (!theme.match(RegExp("sylvia", "gi"))) … … 2267 2254 marge_basse = 0; 2268 2255 if (conf.MargeBasse) 2269 marge_basse = jQuery( ).Get_Val_int(conf.MargeBasse);2256 marge_basse = jQuery(Obj).Get_Val_int(conf.MargeBasse); 2270 2257 marge_top = 0; 2271 2258 if (conf.MargeHaute) 2272 marge_top = jQuery( ).Get_Val_int(conf.MargeHaute);2259 marge_top = jQuery(Obj).Get_Val_int(conf.MargeHaute); 2273 2260 infos_Obj = jQuery(Obj).infos(); 2274 2261 h1_left = jQuery(Obj).absoluteLeft();
Note: See TracChangeset
for help on using the changeset viewer.