Fix nextmatch rendering issue when it's inside an inactive tab

This commit is contained in:
Hadi Nategh 2018-11-23 10:44:50 +01:00
parent 5e48cbe78c
commit 8d359ee39f

View File

@ -415,6 +415,14 @@ var et2_tabbox = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
// container
this.flagContainer.children(":eq(" + _idx + ")").addClass("active");
this.tabContainer.children(":eq(" + _idx + ")").show();
// lookup for nm children and trigger a resize, since nm inside inactive
// tabs are not getting render due to tab's deffer loading.
if (this._children.length > 0 && this.tabData && this.tabData.length > 0) {
this.tabData[_idx]['widget'].iterateOver(function(nm){
if (nm && nm._type == 'nextmatch') nm.resize();
}, this.tabData[_idx]['widget'], et2_nextmatch);
}
},
/**