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:
parent
17f2882639
commit
3930dd4c5c
calendar/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();
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user