mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
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
0a84de589a
commit
3ff331c22b
@ -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