Changeset 5849


Ignore:
Timestamp:
03/29/12 16:26:01 (12 years ago)
Author:
gustavo
Message:

Ticket #2549 - Definição de DOCTYPE no html para viabilizar cross-browsing no ExpressoMail?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/common_functions.js

    r5848 r5849  
    4141        var content_folders = Element("content_folders"); 
    4242         
    43          var clientWidth = 0, clientHeight = 0; 
    44           if( typeof( window.innerWidth ) == 'number' ) { 
     43        var clientWidth = 0, clientHeight = 0; 
     44        if( typeof( window.innerWidth ) == 'number' ) { 
    4545                //Non-IE 
    4646                clientWidth = window.innerWidth; 
    4747                clientHeight = window.innerHeight; 
    48           } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 
     48        } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 
    4949                //IE 6+ in 'standards compliant mode' 
    5050                clientWidth = document.documentElement.clientWidth; 
    5151                clientHeight = document.documentElement.clientHeight; 
    52           } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 
     52        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 
    5353                //IE 4 compatible 
    5454                clientWidth = document.body.clientWidth; 
    5555                clientHeight = document.body.clientHeight; 
    56           } 
     56        } 
    5757        clientHeight = clientHeight - 8; 
    5858 
Note: See TracChangeset for help on using the changeset viewer.