Changeset 9225 for extensions/Autosize
- Timestamp:
- Feb 14, 2011, 3:46:49 PM (14 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r9007 r9225 284 284 285 285 $my_para->webmaster_height =(isset($_POST['webmaster_height'])) ? $_POST['webmaster_height'] : ((isset($my_para->webmaster_height )) ? $my_para->webmaster_height : '100%' ) ; 286 $my_para->webmaster_width=(isset($_POST['webmaster_width']))? $_POST['webmaster_width']: ((isset($my_para->webmaster_width)) ? $my_para->webmaster_width: ' 90%') ;287 288 $my_para->admin_height =(isset($_POST['admin_height'])) ? $_POST['admin_height'] : ((isset($my_para->admin_height )) ? $my_para->admin_height : ' 90%' ) ;289 $my_para->admin_width=(isset($_POST['admin_width']))? $_POST['admin_width']: ((isset($my_para->admin_width)) ? $my_para->admin_width: ' 90%') ;286 $my_para->webmaster_width=(isset($_POST['webmaster_width']))? $_POST['webmaster_width']: ((isset($my_para->webmaster_width)) ? $my_para->webmaster_width: '100%') ; 287 288 $my_para->admin_height =(isset($_POST['admin_height'])) ? $_POST['admin_height'] : ((isset($my_para->admin_height )) ? $my_para->admin_height : '100%' ) ; 289 $my_para->admin_width=(isset($_POST['admin_width']))? $_POST['admin_width']: ((isset($my_para->admin_width)) ? $my_para->admin_width: '100%') ; 290 290 291 291 $my_para->generic_height =(isset($_POST['generic_height'])) ? $_POST['generic_height'] : ((isset($my_para->generic_height )) ? $my_para->generic_height : '100%' ) ; 292 $my_para->generic_width=(isset($_POST['generic_width']))? $_POST['generic_width']: ((isset($my_para->generic_width)) ? $my_para->generic_width: ' 90%') ;292 $my_para->generic_width=(isset($_POST['generic_width']))? $_POST['generic_width']: ((isset($my_para->generic_width)) ? $my_para->generic_width: '100%') ; 293 293 294 294 $my_para->guest_height =(isset($_POST['guest_height'])) ? $_POST['guest_height'] : ((isset($my_para->guest_height )) ? $my_para->guest_height : '100%' ) ; 295 $my_para->guest_width=(isset($_POST['guest_width']))? $_POST['guest_width']: ((isset($my_para->guest_width)) ? $my_para->guest_width: ' 90%') ;295 $my_para->guest_width=(isset($_POST['guest_width']))? $_POST['guest_width']: ((isset($my_para->guest_width)) ? $my_para->guest_width: '100%') ; 296 296 297 297 $my_para->normal_height =(isset($_POST['normal_height'])) ? $_POST['normal_height'] : ((isset($my_para->normal_height )) ? $my_para->normal_height : '100%' ) ; 298 $my_para->normal_width=(isset($_POST['normal_width']))? $_POST['normal_width']: ((isset($my_para->normal_width)) ? $my_para->normal_width: ' 90%') ;298 $my_para->normal_width=(isset($_POST['normal_width']))? $_POST['normal_width']: ((isset($my_para->normal_width)) ? $my_para->normal_width: '100%') ; 299 299 300 300 … … 306 306 307 307 $my_para->echelle_max=(isset($_POST['echelle_max']))? $_POST['echelle_max'] : ((isset($my_para->echelle_max)) ? $my_para->echelle_max : '1.2'); 308 $my_para->marge_basse=(isset($_POST['marge_basse']))? $_POST['marge_basse']: ((isset($my_para->marge_basse)) ? $my_para->marge_basse : ' 50');308 $my_para->marge_basse=(isset($_POST['marge_basse']))? $_POST['marge_basse']: ((isset($my_para->marge_basse)) ? $my_para->marge_basse : '0'); 309 309 $my_para->fade_in=(isset($_POST['fade_in']))? $_POST['fade_in']: ((isset($my_para->fade_in)) ? $my_para->fade_in : '200'); 310 310 -
extensions/Autosize/js/Affiche_script.js
r9218 r9225 84 84 jQuery("#src_img_w").val(img_w); 85 85 jQuery("#ret_autosize").val(src_img); 86 if (typeof Window_Affichage =="undefined" ) { 87 Window_Affichage = { height: Zone_Affichage.height, 88 width: Zone_Affichage.width 89 }; 90 } 86 91 jQuery("#window_height").val(Window_Affichage.height); 87 92 jQuery("#window_width").val(Window_Affichage.width); … … 380 385 var winheight = jQuery(window).height(); 381 386 n = winwidth - old_window.width; 382 if (Math.abs( 387 if (Math.abs(n) < 1) { 383 388 n = winheight - old_window.height; 384 389 if (Math.abs(n) < 1) 385 390 return true; 386 391 } 387 if (nu_img > 10) return true; 392 if (Math.abs(n) > 30) nu_img = 0; 393 //if (nu_img > 10) return true; 388 394 old_window = jQuery(window).infos(); 389 395 //=========================================================================== … … 398 404 var info_the_page = jQuery("#the_page").infos(); 399 405 //============================================================================= 400 406 401 407 var info_content = jQuery("#content").infos(); 402 408 var info_titrePage = jQuery("#titrePage").infos(); … … 1062 1068 t1 = info_theImageBox.top; 1063 1069 l1 = info_theImageBox.left; 1064 // info_theImageBox = jQuery(Parent).infos();1070 // info_theImageBox = jQuery(Parent).infos(); 1065 1071 1066 1072 } else { … … 1371 1377 info_description.borderwidth.bottom + 1372 1378 options.imageAutosizeMargin*2 + 1373 (marges_llgbo / 2) ;1379 (marges_llgbo / 2)+4; 1374 1380 1375 1381 } else { 1376 info_description.top = info_theImageBox.bottom ; 1377 info_description.bottom = info_theImageAndTitle.bottom + 1378 info_theImageAndTitle.margin.bottom + 1379 info_theImageAndTitle.margin.top + 1380 info_description.borderwidth.top + 1381 info_description.borderwidth.bottom + 1382 options.imageAutosizeMargin*2 + 1383 (marges_llgbo / 2); 1384 1382 1383 1384 info_description.top = info_theImageBox.bottom + 1385 jQuery("#content").infos().top + 1386 options.imageAutosizeMargin * 2 + 1387 (marges_llgbo / 2) 1388 ; 1389 info_description.bottom = jQuery("#tabZone").infos().top + 1390 info_theImageAndTitle.margin.top; 1391 if (msie == true) info_description.bottom -= 4; 1385 1392 }; 1386 1393 check_desc_v = true; … … 1391 1398 // info_description.bottom -= info_img.top; 1392 1399 } 1393 // if (msie == true) info_description.bottom -= 4;1400 // 1394 1401 1395 1402 info_description.height = info_description.bottom - info_description.top; … … 1401 1408 Debug_pos(); 1402 1409 1403 // 1410 //cl_visible=false ; 1404 1411 return info_description; 1405 1412 }
Note: See TracChangeset
for help on using the changeset viewer.