diff --git a/calendar/js/et2_widget_daycol.js b/calendar/js/et2_widget_daycol.js index 86bbe1e9cb..c39b7f7972 100644 --- a/calendar/js/et2_widget_daycol.js +++ b/calendar/js/et2_widget_daycol.js @@ -852,6 +852,10 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizea */ position_event: function(event) { + // Not visible? Skip it for speed. + // Should be called again as part of resize when shown. + if(!this.div.is(':visible')) return; + // Sort events into minimally-overlapping columns var columns = this._spread_events(); diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 4e675a8bfa..475f9403f8 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -364,7 +364,11 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM], this.set_statustext(''); // Height specific section - this._small_size(); + // This can take an unreasonable amount of time if parent is hidden + if(this._parent.div.is(':visible')) + { + this._small_size(); + } }, /**