Ignore:
Timestamp:
12/13/12 16:58:22 (11 years ago)
Author:
acoutinho
Message:

Ticket #2215 - A agenda esta com problema para ser exibida no IE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/init.js

    r7646 r7653  
    520520                $('#context-menu-event').html(''); 
    521521         }); 
    522           
    523         if($(window).height() < $('body').height()){ 
    524                 var hei = $('body').height() - $(window).height(); 
    525                 hei = $('#divAppbox').height() - hei; 
    526                 $('#divAppbox').css('max-height', hei); 
    527                 $('#divAppbox').css('min-height', hei); 
    528                 $('body').css('overflow-y','hidden'); 
    529                 delete hei; 
    530          } 
     522 
     523 
     524    if( $.browser.msie ){ 
     525 
     526        $('body').css('overflow-y','hidden'); 
     527 
     528 
     529    }else{ 
     530 
     531        if($(window).height() < $('body').height()){ 
     532            var hei = $('body').height() - $(window).height(); 
     533            hei = $('#divAppbox').height() - hei; 
     534            $('#divAppbox').css('max-height', hei); 
     535            $('#divAppbox').css('min-height', hei); 
     536            $('body').css('overflow-y','hidden'); 
     537            delete hei; 
     538        } 
     539 
     540        $(window).resize(function(){ 
     541            $('#divAppbox').css('max-height', $(window).height() - 104); 
     542            $('#divAppbox').css('min-height', $(window).height() - 104); 
     543            $('#divAppbox').css('overflow-x', 'auto'); 
     544            $('#divAppbox').css('overflow-y', 'scroll'); 
     545        }); 
     546    } 
    531547           
    532          $(window).resize(function(){ 
    533                 $('#divAppbox').css('max-height', $(window).height() - 104); 
    534                 $('#divAppbox').css('min-height', $(window).height() - 104); 
    535                 $('#divAppbox').css('overflow-x', 'auto'); 
    536                 $('#divAppbox').css('overflow-y', 'scroll'); 
    537         });        
     548 
     549 
     550    if( $.browser.msie ){ 
     551 
     552        $('#divAppbox').css('width', $(window).width()); 
     553    } 
     554 
     555 
    538556        //Todo chamada do metodo que adiciona ao full calendar o botao de listagem de eventos   
    539557        printEvents(); 
     
    542560 
    543561function useDesktopNotification(){ 
     562 
    544563        return !!parseInt(User.preferences.useDesktopNotification); 
     564 
    545565} 
Note: See TracChangeset for help on using the changeset viewer.