Changeset 7826


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

[Autosize][beta] fix compatiblity with charlie.

Location:
extensions/Autosize
Files:
2 edited

Legend:

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

    r7821 r7826  
    180180                     info_img = jQuery("#" + Parent + " #theImg img").infos();
    181181
    182                  } else {
     182                 } else if (jQuery("#charlie").length > 0) {
     183                     jQuery("#charlie").css("position","relative");
     184                       //    info_img = jQuery("#charlie").infos(); //charlie
     185                  info_img = jQuery('#charlie object').infos(); //player
     186                     
     187
     188                   } else {
    183189
    184190                     info_img = jQuery("#" + Parent + " img").infos();
    185191                 }
    186 
    187192                 info_description.marge = { bottom: info_img.padding.bottom + info_img.margin.bottom + info_img.borderwidth.bottom,
    188193                     top: info_img.padding.top + info_img.borderwidth.top
    189194                 }
     195                 if (( info_img.bottom-info_img.top) < 100 )
     196                 info_img.top =0 ;
    190197
    191198                 info_description.top = Bandeau + info_img.top + info_img.bottom + info_img.margin.bottom + info_img.borderwidth.bottom;
     
    244251
    245252                 if (info_description.bottom < info_description.top) {
    246                      info_description.bottom = info_description.top;
     253                        top_tmp=  info_description.top;
     254                        info_description.top=info_description.bottom;
     255                        info_description.bottom =top_tmp;
    247256
    248257                     info_desc = jQuery("#" + Parent + " p:last").infos();
     
    250259                     if (info_desc.bottom > info_img.bottom)
    251260                         info_description.bottom = info_desc.bottom;
     261                           if (info_description.bottom < info_description.top) {
     262                                top_tmp=  info_description.top;
     263                                info_description.top=info_description.bottom;
     264                                info_description.bottom =top_tmp;
     265                     }
     266                       info_description.height =info_description.bottom-info_description.top;
     267
    252268                 }
    253269
     
    352368             jQuery(window).resize(
    353369               function (event, ui) {   
    354                return ;
     370               
    355371                   
    356372               event = event || window.event;
     
    786802                 //==========================================================================
    787803                 h = 0;
     804                 if(Bandeau_bas.height <0) Bandeau_bas.height =0 ;
     805
    788806                 Zone_Affichage.height = winheight - Bandeau - Marge_Basse - correction;
    789807                 var Image_height = Zone_Affichage.height - Bandeau_bas.height - Bandeau_bas.marge.top - Bandeau_bas.marge.bottom;
     
    9911009                     }
    9921010                 }
    993                  //==============================================================
     1011                 //============= flv,mov,mpg  ok
     1012                 /* wmv nok
     1013                 * avi nok
     1014                 //===========================================
     1015                 */
    9941016                 if (Type_Img == "charlie") {
    9951017                     t1 = jQuery("#charlie").infos();
     1018
    9961019                     /**/
    9971020                     pdf = 2 * parseInt(jQuery(".none_2").css("paddingRight"));
    9981021                     jQuery("#charlie").css({
    999                          width: Image_width + pdf,
     1022                         width: Image_width + pdf ,
    10001023                         height: Image_height,
    10011024                         margin: "auto"
    10021025                     });
    10031026
     1027                     jQuery(".none_2").width(Image_width) ;
     1028                     jQuery(".none_2").height( Image_height) ;
     1029
    10041030
    10051031                     jQuery("#player").css("width", Image_width + 100 + "px");
     
    10121038                     jQuery("object").width(Image_width);
    10131039                     jQuery("object").height(Image_height);
     1040
     1041
    10141042                 } else if (Type_Img == "panorama") {
    10151043
  • extensions/Autosize/main.inc.php

    r7821 r7826  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.3.7.1
     4Version: 1.3.7.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.