Changeset 18736


Ignore:
Timestamp:
Oct 25, 2012, 4:01:22 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (prechargement)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r18735 r18736  
    142142       $theImageMargeHeight=isset($_COOKIE['theImageMargeHeight'])?$_COOKIE['theImageMargeHeight']:0;
    143143
    144        $theImageWidth=    $windowWidth -  $theImageRight - $theImageLeft - $theImageMargeWidth;
    145        $theImageHeight=   $windowHeight - $theImageTop - $theImageBottom - $theImageMargeHeight;
    146  
     144      $theImageMargeHeight -= 2;
     145 
     146if(isset($_COOKIE['theImageWidth'])){
     147       $theImageWidth=    $_COOKIE['theImageWidth'];
     148       $theImageHeight=  $_COOKIE['theImageHeight'] ;
     149}
     150
     151       $theImageWidth=    $windowWidth -  $theImageLeft - $theImageMargeWidth;
     152       $theImageHeight=   $windowHeight - $theImageTop  - $theImageMargeHeight ;
     153 
    147154
    148155    $retour = autosize_controler::get_min_max() ;
Note: See TracChangeset for help on using the changeset viewer.