From be82f32b6848690aa94f6caf680fa3d8dd28e460 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 24 Nov 2022 14:20:45 -0700 Subject: [PATCH] When nm is on a tab, need to resize the nm when the tab is shown to get proper sizing --- api/js/etemplate/et2_extension_nextmatch.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 3a92c4df80..0a8f2d5637 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -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); }