Changeset 6954


Ignore:
Timestamp:
Sep 17, 2010, 11:13:36 AM (14 years ago)
Author:
cljosse
Message:

[Autosize]fix bugs whith FF


Location:
extensions/Autosize
Files:
2 edited

Legend:

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

    r6953 r6954  
    8282                P0 = Pars.get(i);
    8383                h_p += parseInt(jQuery(P0).height());
    84                 if (P0.currentStyle.marginTop)
    85                     if (P0.currentStyle.marginTop != "auto") h_p += parseInt(P0.currentStyle.marginTop);
    86                 if (P0.currentStyle.marginBottom)
    87                     if (P0.currentStyle.marginBottom != "auto")
    88                         h_p += parseInt(P0.currentStyle.marginBottom);
    89                 if (P0.currentStyle.PaddingTop) h_p += parseInt(P0.currentStyle.PaddingTop);
    90                 if (parseInt(P0.currentStyle.PaddingBottom)) h_p += parseInt(P0.currentStyle.PaddingBottom);
     84             if (jQuery(P0).css("marginTop"))
     85                    if (jQuery(P0).css("marginTop") != "auto") h_p += parseInt(jQuery(P0).css("marginTop"));
     86             if (jQuery(P0).css("marginBottom"))
     87                    if (jQuery(P0).css("marginBottom") != "auto") h_p += parseInt(jQuery(P0).css("marginBottom"));
     88             if (jQuery(P0).css("paddingTop")) h_p += parseInt(jQuery(P0).css("paddingTop"));
     89             if (parseInt(jQuery(P0).css("paddingBottom"))) h_p += parseInt(jQuery(P0).css("paddingBottom"));
    9190
    9291            }
  • extensions/Autosize/main.inc.php

    r6953 r6954  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.0.5
     4Version: 1.0.6
    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.