forked from extern/egroupware
Etemplate: Avoid trying to repaint datagrid while it's hidden
Avoids an infinite(?) loop and endless "[Violation] 'setTimeout' handler took <N>ms" messages
This commit is contained in:
parent
aa170b0a22
commit
939816c60e
@ -643,6 +643,10 @@ var et2_dataview_grid = /** @class */ (function (_super_1) {
|
||||
et2_dataview_grid.prototype._doInvalidate = function (_super) {
|
||||
if (!this.doInvalidate)
|
||||
return;
|
||||
// Not visible?
|
||||
if (jQuery(":visible", this.outerCell).length == 0) {
|
||||
return;
|
||||
}
|
||||
// Update the pixel positions
|
||||
this._recalculateElementPosition();
|
||||
// Call the callback
|
||||
|
@ -893,6 +893,11 @@ export class et2_dataview_grid extends et2_dataview_container implements et2_dat
|
||||
{
|
||||
if(!this.doInvalidate) return;
|
||||
|
||||
// Not visible?
|
||||
if(jQuery(":visible",this.outerCell).length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Update the pixel positions
|
||||
this._recalculateElementPosition();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user