Changeset 7931 for extensions/Autosize


Ignore:
Timestamp:
Nov 29, 2010, 11:20:59 AM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] fix bugs with randompict

Location:
extensions/Autosize
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/admin/template/admin.tpl

    r7912 r7931  
    8383        <legend class="cluetip" title="{'cl_autosize_config_title_1'|@translate}|{'cl_autosize_hlp_line1'|@translate}">{'cl_autosize_config_title_1'|@translate}</legend>
    8484        <td>{'User status'|@translate}</td>
     85
    8586        <td>{'cl_autosize_height'|@translate}</td>
    8687        <td style="visibility:visible">{'cl_autosize_width'|@translate}
  • extensions/Autosize/js/Affiche_script.js

    r7917 r7931  
    7171              );
    7272
    73              return;
    74             if (fade_in==0 )
    75                  {
    76                  jQuery(Parent).css({
    77                          opacity: 1
    78                          
    79                          }
    80                  )
    81                                  }else{
    82                  jQuery(Parent).animate(
    83                          { opacity: 1 }, fade_in   , "swing"
    84                         );
    85              }
    86 
    87 
    88 
    8973}
    9074 
     
    129113             nopano = false;
    130114
    131 
    132 
    133115             /*
    134116             *
     
    150132             Parent = "#theImage";
    151133             Zone_Affichage = jQuery(Parent).infos();
    152              if (Zone_Affichage.width == 0)
    153                  Parent = Parent + "Box";
    154 
    155              Parent = "#theImage";
    156              Zone_Affichage = jQuery(Parent).infos();
    157134             //   
    158135             var old_window = { width: 0, height: 0 };
     
    253230
    254231                 var Cadre = jQuery(Parent).get(0);
    255                  if (Cadre == null) {
    256                      Parent = "#theImageBox";
    257                      Cadre = jQuery(Parent).get(0);
    258                  }
    259 
    260232                 var info_Cadre = jQuery(Cadre).infos();
    261233                 //===============  Information cadre ======
     
    299271                 //---------------------------------------------
    300272                 jQuery(Parent).width(winwidth);
    301                //  jQuery(Parent).height(Zone_Affichage.height);
     273                 jQuery(Parent).css({ height: "auto" });
     274
     275
     276                 //  jQuery(Parent).height(Zone_Affichage.height);
    302277                 //---------------------------------------------
    303278
     
    425400
    426401                 }
    427                
     402
    428403                 //=============== Vérification taille minimale  autorizée ======================
    429404                 var miniWidth = jQuery(TheImg).Get_Val_int(jQuery(TheImg).css("min-width"), mini_width);
     
    463438                 borderW = Zone_Affichage.borderwidth.left;
    464439                 borderW += Zone_Affichage.borderwidth.right;
    465                  
     440
    466441
    467442                 Zone_Affichage.width = winwidth - borderW;
     
    500475                 //==========================================================================
    501476                 h = 0;
    502                  Zone_Affichage.height -= (Zone_Affichage.margin.top + Zone_Affichage.margin.bottom);
     477
     478                 Zone_Affichage.height -= (Zone_Affichage.padding.bottom + Zone_Affichage.padding.top + Zone_Affichage.margin.top + Zone_Affichage.margin.bottom);
    503479                 Bandeau = Bandeau_t.bottom;
    504480                 Zone_Affichage.height = winheight - Bandeau - Marge_Basse - correction;
     
    699675
    700676
    701                  jQuery(Cadre).width(Zone_Affichage.width);
    702                  jQuery(Cadre).height(Zone_Affichage.height);
     677                 jQuery(Cadre).width(Zone_Affichage.width-4);
     678
    703679                 //============= Remise à l'échelle =======================
    704680
     
    831807
    832808                 info_frame = Zone_Affichage;
     809                 h0 = jQuery(Cadre).outerHeight(true);
     810                 jQuery(Cadre).height(info_frame.height+5);
    833811
    834812                 jQuery("#navThumbPrev").css({ overflow: "hidden" });
     
    895873                     jQuery("#Debug5").css({ background: "transparent",
    896874                         border: "red solid 2px",
    897                        
     875
    898876                         left: info_frame.left + "px",
    899877                         width: info_frame.width + "px",
  • extensions/Autosize/js/conflit.js

    r7912 r7931  
    480480    state = states.join('\n');
    481481    if (state == "") {
     482       
    482483        if (DEBUG == "true") {
    483484            Fn = all_functions.join('\n');
    484             alert("non trouvé:" + Fn + "\n"  + fn2 + "\n Firefox:" + state_ff);
    485         }
     485            try {
     486                alert(Conflit.name + Conflit.version + "\n Appel non trouvée:" + fn1 + "\n" + Fn + "\n Firefox(retour):" + state_ff);
     487            } catch (e) {
     488            }
     489        }
     490
     491 
    486492        state = state_ff;
    487493    }
     
    566572
    567573}
    568 
     574//============================================
     575/* url (String): URl de la page à charger
     576* params (Map): (optionnel) paires de clé/valeur qui seront envoyées au serveur.
     577* callback (Fonction): (optionnel) fonction qui sera éxécutée quand les données sera chargées.
     578* type (String): (optionnel) format des données renvoyées à la fonction de callback
     579*/
    569580if (typeof ($.get) != "function") {
    570     $.get = function (options) {
    571         return jQuery.get(options);
    572     }
    573 
    574 
     581    $.get = function ( a, b, c, d) {
     582        return jQuery.get(a, b, c,d );
     583    }
    575584}
    576585$_ = $;
     
    586595
    587596}
    588 
  • extensions/Autosize/main.inc.php

    r7917 r7931  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.3.9.1
     4Version: 1.3.9.2
    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.