Changeset 9218


Ignore:
Timestamp:
Feb 14, 2011, 1:09:33 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] bug with theme stripped
.


Location:
extensions/Autosize
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/Affiche_script.js

    r9065 r9218  
    294294             jQuery("#the_page").css({ top: "0px" });
    295295             Info_the_page = jQuery("#the_page").infos();
     296             info_HeaderBar = jQuery("#imageHeaderBar").infos();
    296297
    297298             Parent = "#theImage";
     
    379380                 var winheight = jQuery(window).height();
    380381                 n = winwidth - old_window.width;
    381                  if (n == 0) {
     382                 if (Math.abs( n) < 1) {
    382383                     n = winheight - old_window.height;
    383                      if (n == 0)
     384                     if (Math.abs(n) < 1)
    384385                         return true;
    385386                 }
     387                 if (nu_img > 10) return true;
    386388                 old_window = jQuery(window).infos();
    387389                 //===========================================================================
     
    396398                 var info_the_page = jQuery("#the_page").infos();
    397399                 //=============================================================================
    398                  var info_HeaderBar = jQuery("#imageHeaderBar").infos();
     400               
    399401                 var info_content = jQuery("#content").infos();
    400402                 var info_titrePage = jQuery("#titrePage").infos();
     
    842844                 //========== Image Remise à l'échelle =======================
    843845
    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);
    846848                 //=========================================================================
    847849                 if (jQuery("#slideshow").infos().width > 0) {
     
    10601062                     t1 = info_theImageBox.top;
    10611063                     l1 = info_theImageBox.left;
    1062                     info_theImageBox = jQuery(Parent).infos();
     1064                    // info_theImageBox = jQuery(Parent).infos();
    10631065
    10641066                 } else {
     
    13601362        //=========================================================
    13611363    } else if (theme.match(RegExp("stripped", "gi"))) {
    1362        
     1364        //options.imageAutosize
     1365        //options.imageMargin
    13631366        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 +
    13691370                                    info_description.borderwidth.top +
    1370                                     info_description.borderwidth.bottom +
     1371                                    info_description.borderwidth.bottom +
     1372                                      options.imageAutosizeMargin*2 + 
    13711373                                    (marges_llgbo / 2);   
    13721374
    13731375        } 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);         
    13801384           
    13811385        };
  • extensions/Autosize/main.inc.php

    r9065 r9218  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.4.45
     4Version: 1.4.46
    55Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
Note: See TracChangeset for help on using the changeset viewer.