From 1d5457b47701fe7e764e8ba79e899c5304f3186d Mon Sep 17 00:00:00 2001 From: milan Date: Mon, 11 Nov 2024 16:30:42 +0100 Subject: [PATCH] changelog is visible again -- not perfect, we now have two scrollbars, needs further fixing --- api/js/etemplate/Layout/Et2Tabs/Et2Tabs.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Layout/Et2Tabs/Et2Tabs.ts b/api/js/etemplate/Layout/Et2Tabs/Et2Tabs.ts index 46b1be0240..a780731ce8 100644 --- a/api/js/etemplate/Layout/Et2Tabs/Et2Tabs.ts +++ b/api/js/etemplate/Layout/Et2Tabs/Et2Tabs.ts @@ -269,7 +269,13 @@ export class Et2Tabs extends Et2InputWidget(SlTabGroup) implements et2_IResizeab const initial = firstTab.hasAttribute("active"); firstTab.setAttribute("active", ''); const tabHeight = getComputedStyle(firstTab).height; - this.tabHeight = maxHeight != '0px' && parseInt(maxHeight) < parseInt(tabHeight) ? maxHeight : tabHeight; + if (parseInt(maxHeight) > 50 && parseInt(maxHeight) < parseInt(tabHeight)) + { + this.tabHeight = maxHeight; + } else + { + this.tabHeight = tabHeight; + } if(!initial) { firstTab.removeAttribute("active");