Ignore:
Timestamp:
Jan 3, 2013, 7:38:40 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix bug init

File:
1 edited

Legend:

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

    r19746 r19764  
    9292        }
    9393          self::reload("#93");
    94            self::Fin_php("#94 autosize_calcContent:" + $DEBUG_autosize);
     94          self::Fin_php("#94 autosize_calcContent:" + $DEBUG_autosize);
    9595
    9696    } 
     
    120120* INIT
    121121*********************/
     122
     123static public function init_1($content, $image)
     124                {
     125                  global $conf, $template, $page;   
     126       if(!isset($conf['AS_panorama'])) return $content; 
     127                  $asp = & $conf['AS_panorama'];   
     128       if ( !stristr($image['name'], $asp['in_mode_360']) and !stristr($image['name'], $asp['in_mode_180']) ) return $content;
     129
     130       $windowWidth=$_COOKIE['windowWidth'] -$_COOKIE['theImageLeft']-$_COOKIE['theImageRight'];
     131       $windowHeight=$_COOKIE['windowHeight']-130 ;
     132
     133      $asp['start_position']= 10;     
     134           $asp['min_viewport_width']= $windowWidth;     
     135            $asp['viewport_height']= $windowHeight;     
     136      }
     137
    122138static public function init($content,$element_info){
    123139  global  $template,$version,$icon_path,$page,$picture,$conf;
     
    408424        echo $set_var ;       
    409425        echo $autoscript;       
    410         self::Fin_php("#411: ".$DEBUG_autosize);
     426  //      self::Fin_php("#411: ".$DEBUG_autosize);
    411427       
    412428}
Note: See TracChangeset for help on using the changeset viewer.