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

[Autosize][beta] fix bugs with randompict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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",
Note: See TracChangeset for help on using the changeset viewer.