Ignore:
Timestamp:
Feb 14, 2011, 3:46:49 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] Adjust height with theme stripped
.


File:
1 edited

Legend:

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

    r9218 r9225  
    8484    jQuery("#src_img_w").val(img_w);
    8585    jQuery("#ret_autosize").val(src_img);
     86    if (typeof Window_Affichage =="undefined" ) {
     87        Window_Affichage = { height: Zone_Affichage.height,
     88            width: Zone_Affichage.width
     89        };
     90    }
    8691    jQuery("#window_height").val(Window_Affichage.height);
    8792    jQuery("#window_width").val(Window_Affichage.width);
     
    380385                 var winheight = jQuery(window).height();
    381386                 n = winwidth - old_window.width;
    382                  if (Math.abs( n) < 1) {
     387                 if (Math.abs(n) < 1) {
    383388                     n = winheight - old_window.height;
    384389                     if (Math.abs(n) < 1)
    385390                         return true;
    386391                 }
    387                  if (nu_img > 10) return true;
     392                 if (Math.abs(n) > 30) nu_img = 0;
     393                 //if (nu_img > 10) return true;
    388394                 old_window = jQuery(window).infos();
    389395                 //===========================================================================
     
    398404                 var info_the_page = jQuery("#the_page").infos();
    399405                 //=============================================================================
    400                
     406
    401407                 var info_content = jQuery("#content").infos();
    402408                 var info_titrePage = jQuery("#titrePage").infos();
     
    10621068                     t1 = info_theImageBox.top;
    10631069                     l1 = info_theImageBox.left;
    1064                     // info_theImageBox = jQuery(Parent).infos();
     1070                     // info_theImageBox = jQuery(Parent).infos();
    10651071
    10661072                 } else {
     
    13711377                                    info_description.borderwidth.bottom +
    13721378                                      options.imageAutosizeMargin*2 + 
    1373                                     (marges_llgbo / 2);   
     1379                                    (marges_llgbo / 2)+4;
    13741380
    13751381        } else {
    1376             info_description.top = info_theImageBox.bottom ;
    1377             info_description.bottom =  info_theImageAndTitle.bottom +
    1378                                         info_theImageAndTitle.margin.bottom +
    1379                                         info_theImageAndTitle.margin.top +         
    1380                                         info_description.borderwidth.top +
    1381                                         info_description.borderwidth.bottom  +
    1382                                         options.imageAutosizeMargin*2 +
    1383                                          (marges_llgbo / 2);         
    1384            
     1382       
     1383       
     1384            info_description.top = info_theImageBox.bottom +
     1385                        jQuery("#content").infos().top +
     1386                        options.imageAutosizeMargin * 2  +
     1387                        (marges_llgbo / 2)
     1388                                ;
     1389            info_description.bottom = jQuery("#tabZone").infos().top +
     1390                        info_theImageAndTitle.margin.top;
     1391           if (msie == true) info_description.bottom -= 4;
    13851392        };
    13861393        check_desc_v = true;
     
    13911398        // info_description.bottom -= info_img.top;
    13921399    }
    1393     //   if (msie == true) info_description.bottom -= 4;
     1400    // 
    13941401
    13951402    info_description.height = info_description.bottom - info_description.top;
     
    14011408    Debug_pos();
    14021409
    1403     //  cl_visible=false ;
     1410    //cl_visible=false ;
    14041411    return info_description;
    14051412}
Note: See TracChangeset for help on using the changeset viewer.