mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-04 21:18:54 +01:00
Avoid positioning or sizing events when their parent is hidden to speed things up a little.
This commit is contained in:
parent
17f2882639
commit
3930dd4c5c
@ -852,6 +852,10 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizea
|
|||||||
*/
|
*/
|
||||||
position_event: function(event)
|
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
|
// Sort events into minimally-overlapping columns
|
||||||
var columns = this._spread_events();
|
var columns = this._spread_events();
|
||||||
|
|
||||||
|
@ -364,7 +364,11 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
|
|||||||
this.set_statustext('');
|
this.set_statustext('');
|
||||||
|
|
||||||
// Height specific section
|
// 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();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user