Changeset 9218
- Timestamp:
- Feb 14, 2011, 1:09:33 PM (13 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r9065 r9218 294 294 jQuery("#the_page").css({ top: "0px" }); 295 295 Info_the_page = jQuery("#the_page").infos(); 296 info_HeaderBar = jQuery("#imageHeaderBar").infos(); 296 297 297 298 Parent = "#theImage"; … … 379 380 var winheight = jQuery(window).height(); 380 381 n = winwidth - old_window.width; 381 if ( n == 0) {382 if (Math.abs( n) < 1) { 382 383 n = winheight - old_window.height; 383 if ( n == 0)384 if (Math.abs(n) < 1) 384 385 return true; 385 386 } 387 if (nu_img > 10) return true; 386 388 old_window = jQuery(window).infos(); 387 389 //=========================================================================== … … 396 398 var info_the_page = jQuery("#the_page").infos(); 397 399 //============================================================================= 398 var info_HeaderBar = jQuery("#imageHeaderBar").infos();400 399 401 var info_content = jQuery("#content").infos(); 400 402 var info_titrePage = jQuery("#titrePage").infos(); … … 842 844 //========== Image Remise à l'échelle ======================= 843 845 844 Image_height = img_finale.height;845 Image_width = img_finale.width;846 img_finale.height = parseInt(img_finale.height); 847 img_finale.width = parseInt(img_finale.width); 846 848 //========================================================================= 847 849 if (jQuery("#slideshow").infos().width > 0) { … … 1060 1062 t1 = info_theImageBox.top; 1061 1063 l1 = info_theImageBox.left; 1062 info_theImageBox = jQuery(Parent).infos();1064 // info_theImageBox = jQuery(Parent).infos(); 1063 1065 1064 1066 } else { … … 1360 1362 //========================================================= 1361 1363 } else if (theme.match(RegExp("stripped", "gi"))) { 1362 1364 //options.imageAutosize 1365 //options.imageMargin 1363 1366 if (options.imageAutosizeTitle == false) { 1364 info_description.top = info_theImageAndTitle.bottom + 1365 info_theImageAndTitle.margin.bottom + 1366 info_theImageAndTitle.margin.top; 1367 1368 info_description.bottom = info_theImageAndTitle.bottom + 1367 info_description.top = info_theImageBox.bottom; 1368 1369 info_description.bottom =info_HeaderBar.margin.top+ info_description.top + 1369 1370 info_description.borderwidth.top + 1370 info_description.borderwidth.bottom + 1371 info_description.borderwidth.bottom + 1372 options.imageAutosizeMargin*2 + 1371 1373 (marges_llgbo / 2); 1372 1374 1373 1375 } else { 1374 info_description.top = info_theImageBox.bottom + 1375 info_theImageAndTitle.margin.bottom + 1376 info_theImageAndTitle.margin.top; 1377 info_description.bottom = info_theImageAndTitle.bottom + 1378 info_description.borderwidth.top + 1379 info_description.borderwidth.bottom ; 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); 1380 1384 1381 1385 }; -
extensions/Autosize/main.inc.php
r9065 r9218 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 1.4.4 54 Version: 1.4.46 5 5 Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
Note: See TracChangeset
for help on using the changeset viewer.