mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02:00
tab size fix
Regarding Ticket #100501 (cherry picked from commit 0e98fb40fdbe9e66b837824d0f81d26e9016569f)
This commit is contained in:
parent
a38d7be581
commit
859f0881e8
@ -269,9 +269,11 @@ export class Et2Tabs extends Et2InputWidget(SlTabGroup) implements et2_IResizeab
|
||||
const initial = firstTab.hasAttribute("active");
|
||||
firstTab.setAttribute("active", '');
|
||||
const tabHeight = getComputedStyle(firstTab).height;
|
||||
if (parseInt(maxHeight) > 50 && parseInt(maxHeight) < parseInt(tabHeight))
|
||||
if (parseInt(maxHeight) > 50 && parseInt(maxHeight) < parseInt(tabHeight)) //there was a reasonable max height set
|
||||
{
|
||||
this.tabHeight = maxHeight;
|
||||
} else if(maxHeight != '0px'){ //max height was set but is unreasonable small
|
||||
this.tabHeight = '86vh' // use most of available space, but not all so Tabbox header fits too, and does not need second scrollbar
|
||||
} else
|
||||
{
|
||||
this.tabHeight = tabHeight;
|
||||
|
Loading…
x
Reference in New Issue
Block a user