mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02: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) {
|
et2_dataview_grid.prototype._doInvalidate = function (_super) {
|
||||||
if (!this.doInvalidate)
|
if (!this.doInvalidate)
|
||||||
return;
|
return;
|
||||||
|
// Not visible?
|
||||||
|
if (jQuery(":visible", this.outerCell).length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Update the pixel positions
|
// Update the pixel positions
|
||||||
this._recalculateElementPosition();
|
this._recalculateElementPosition();
|
||||||
// Call the callback
|
// Call the callback
|
||||||
|
@ -893,6 +893,11 @@ export class et2_dataview_grid extends et2_dataview_container implements et2_dat
|
|||||||
{
|
{
|
||||||
if(!this.doInvalidate) return;
|
if(!this.doInvalidate) return;
|
||||||
|
|
||||||
|
// Not visible?
|
||||||
|
if(jQuery(":visible",this.outerCell).length == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Update the pixel positions
|
// Update the pixel positions
|
||||||
this._recalculateElementPosition();
|
this._recalculateElementPosition();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user