Changeset 9225 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Feb 14, 2011, 3:46:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.