Fix event resizing which was broken on all browsers

This commit is contained in:
Thomas 2011-08-18 23:28:21 +02:00
parent f72e63058a
commit 00f0054ee7

View file

@ -2273,7 +2273,11 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
// let's go
var cal = new rcube_calendar_ui(rcmail.env.calendar_settings);
$(window).resize(function() {
$(window).resize(function(e) {
// check target due to bugs in jquery
// http://bugs.jqueryui.com/ticket/7514
// http://bugs.jquery.com/ticket/9841
if (e.target == window)
$('#calendar').fullCalendar('option', 'height', $('#main').height());
}).resize();