Ignore:
Timestamp:
Sep 21, 2012, 10:54:57 AM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4, fix bug

File:
1 edited

Legend:

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

    r17545 r18115  
    352352          width: infos_theImage.general.width,
    353353          height: zheight,
    354           margesWidth: infos_window.width - infos_theImage.width + (options.marge_droite + options.marge_gauche)
     354          margesWidth: infos_window.width - infos_theImage.width
    355355        }
    356356      }
     
    411411        infos_theImageAndInfos = jQuery(theImageAndInfos_id).infos();  // Cadre general
    412412        //=============================================================
     413        if (Zone_image.container.margesWidth) {
     414          Zone_image.container.width = infos_window.width - Zone_image.container.margesWidth;
     415        }
    413416        Zone_image.container = {
    414417          height: infos_window.height - (infos_theImage.top),
    415418          width: Zone_image.container.width,
    416           margesWidth: infos_window.width - infos_theImage.width
     419          margesWidth: Zone_image.container.margesWidth || infos_window.width - infos_theImage.width
    417420        };
    418421
     
    19541957    //_______________________ init_gen _______________________
    19551958
    1956   });                                                                                                                                                                                                                                        // ready
     1959  });                                                                                                                                                                                                                                          // ready
    19571960
    19581961
Note: See TracChangeset for help on using the changeset viewer.