Fix event resizing which was broken on all browsers
This commit is contained in:
parent
f72e63058a
commit
00f0054ee7
1 changed files with 6 additions and 2 deletions
|
@ -2273,8 +2273,12 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
|
||||||
// let's go
|
// let's go
|
||||||
var cal = new rcube_calendar_ui(rcmail.env.calendar_settings);
|
var cal = new rcube_calendar_ui(rcmail.env.calendar_settings);
|
||||||
|
|
||||||
$(window).resize(function() {
|
$(window).resize(function(e) {
|
||||||
$('#calendar').fullCalendar('option', 'height', $('#main').height());
|
// 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();
|
}).resize();
|
||||||
|
|
||||||
// show calendars list when ready
|
// show calendars list when ready
|
||||||
|
|
Loading…
Add table
Reference in a new issue