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:
nathangray
2020-08-31 14:06:18 -06:00
parent 0a84de589a
commit 3ff331c22b
2 changed files with 9 additions and 0 deletions

View File

@ -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();