mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 06:31:59 +01:00
Don't reset height until it's time to invalidate, avoids re-calculating on every row
This commit is contained in:
parent
c082dec331
commit
3fdb024ff2
@ -476,9 +476,6 @@ var et2_dataview_grid = et2_dataview_container.extend(et2_dataview_IViewRange,
|
|||||||
* changes.
|
* changes.
|
||||||
*/
|
*/
|
||||||
invalidate: function() {
|
invalidate: function() {
|
||||||
// Clear the "_avgHeight"
|
|
||||||
this._avgHeight = false;
|
|
||||||
this._avgCount = false;
|
|
||||||
|
|
||||||
// Clear any existing "invalidate" timeout
|
// Clear any existing "invalidate" timeout
|
||||||
if (this._invalidateTimeout)
|
if (this._invalidateTimeout)
|
||||||
@ -489,6 +486,9 @@ var et2_dataview_grid = et2_dataview_container.extend(et2_dataview_IViewRange,
|
|||||||
var self = this;
|
var self = this;
|
||||||
var _super = this._super;
|
var _super = this._super;
|
||||||
this._invalidateTimeout = window.setTimeout(function() {
|
this._invalidateTimeout = window.setTimeout(function() {
|
||||||
|
// Clear the "_avgHeight"
|
||||||
|
self._avgHeight = false;
|
||||||
|
self._avgCount = false;
|
||||||
self._invalidateTimeout = null;
|
self._invalidateTimeout = null;
|
||||||
self._doInvalidate(_super);
|
self._doInvalidate(_super);
|
||||||
}, ET2_GRID_INVALIDATE_TIMEOUT);
|
}, ET2_GRID_INVALIDATE_TIMEOUT);
|
||||||
|
Loading…
Reference in New Issue
Block a user