changelog is visible again

-- not perfect, we now have two scrollbars, needs further fixing
This commit is contained in:
milan 2024-11-11 16:30:42 +01:00
parent b12fdea76c
commit 1d5457b477

View File

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