This is a migrated thread and some comments may be shown as answers.

Resize Scheduler ( same height as browser )

1 Answer 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
christian
Top achievements
Rank 1
christian asked on 10 Dec 2008, 02:20 PM
hi,

it is possible that the scheduler has always the same height as the browser?

thanks
christian

1 Answer, 1 is accepted

Sort by
0
Doug Beard
Top achievements
Rank 2
answered on 26 Aug 2009, 05:13 PM
$(document).ready(function() { 
        var viewportwidth; 
        var viewportheight; 
        // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight 
        if (typeof window.innerWidth != 'undefined') { 
            viewportwidth = window.innerWidth, 
            viewportheight = window.innerHeight 
        } 
        // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document) 
        else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) { 
            viewportwidth = document.documentElement.clientWidth, 
            viewportheight = document.documentElement.clientHeight 
        } 
        // older versions of IE 
        else { 
            viewportwidth = document.getElementsByTagName('body')[0].clientWidth, 
            viewportheight = document.getElementsByTagName('body')[0].clientHeight 
        } 
         
        var schedulerClientObject = document.getElementById("<%= RadScheduler1.ClientID%>"); 
        schedulerClientObject.getAttribute('style').height = viewportheight ; 
schedulerClientObject.getAttribute('style').widthviewportwidth ; 
    }); 

Tags
Scheduler
Asked by
christian
Top achievements
Rank 1
Answers by
Doug Beard
Top achievements
Rank 2
Share this question
or