diff --git a/api/js/etemplate/et2_dataview_view_grid.js b/api/js/etemplate/et2_dataview_view_grid.js index 9f5457b3d0..1fdad47d5e 100644 --- a/api/js/etemplate/et2_dataview_view_grid.js +++ b/api/js/etemplate/et2_dataview_view_grid.js @@ -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 diff --git a/api/js/etemplate/et2_dataview_view_grid.ts b/api/js/etemplate/et2_dataview_view_grid.ts index efb22c6149..efc7630678 100644 --- a/api/js/etemplate/et2_dataview_view_grid.ts +++ b/api/js/etemplate/et2_dataview_view_grid.ts @@ -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();