1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2025-01-02 12:09:04 +01:00

Avoid positioning or sizing events when their parent is hidden to speed things up a little.

This commit is contained in:
Nathan Gray 2016-02-23 21:32:43 +00:00
parent 17f2882639
commit 3930dd4c5c
2 changed files with 9 additions and 1 deletions

View File

@ -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();

View File

@ -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();
}
},
/**