When nm is on a tab, need to resize the nm when the tab is shown to get proper sizing

This commit is contained in:
nathan 2022-11-24 14:20:45 -07:00
parent dd26311295
commit be82f32b68

View File

@ -1256,6 +1256,14 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
else if(tab && tab.contentDiv)
{
// Bind a resize while we're here
if(tab.flagDiv)
{
tab.flagDiv.addEventListener("click", (e) =>
{
window.setTimeout(() => this.resize(), 1);
});
}
return new et2_dynheight(tab.contentDiv, this.innerDiv, 100);
}