Ignore:
Timestamp:
Oct 19, 2014, 7:23:31 PM (9 years ago)
Author:
gbo
Message:

improve frame size when using zoom in browser -> ctrl +/-

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/main.inc.php

    r30030 r30224  
    22/*
    33Plugin Name: Look_like_gbo2
    4 Version:  2.7.D
     4Version:  2.7.E
    55Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251
    66Author: GBo
     
    1717                2.7.D fix bug with frame and theme P0w0
    1818                        improve compatibility with Automatic Size       
     19                2.7.E fix bug with frame in js resize
    1920 */
    2021if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    2324// | Plugin constants                                               |
    2425// +-----------------------------------------------------------------------+
    25 define('LLGBO_VERSION', '2.7.D');
     26define('LLGBO_VERSION', '2.7.E');
    2627define('LLGBO_ID',       basename(dirname(__FILE__)));
    2728define('LLGBO_PATH' ,    PHPWG_PLUGINS_PATH . LLGBO_ID . '/');
     
    4748       
    4849    $conf['LLGBO2'] =  safe_unserialize($conf['LLGBO2_Settings']);
     50       
     51        // auto size  must take care of frame size
     52        if (($conf['LLGBO2']['frame']) ) //Frame on
     53        {       $framesize =0;         
     54            foreach ($conf['LLGBO2']['FR-sizes'] as $cle  => $value)
     55                        { if ( $value > 0)
     56                                {       $framesize = $framesize + ( 2 * $value);        }
     57                        }
     58                if (defined('ASIZE_PATH'))
     59                        { $conf['automatic_size_width_margin']= 12 + $framesize;
     60                          $conf['automatic_size_height_margin']= 40 + $framesize;
     61                        }
     62        }
    4963}
    5064/******************************************************************/
Note: See TracChangeset for help on using the changeset viewer.