fix error / tabData was not passed

This commit is contained in:
ralf 2024-09-19 16:05:45 +02:00
parent c1a4cceee1
commit 6d34931784
2 changed files with 3 additions and 3 deletions

View File

@ -217,7 +217,7 @@ export class Et2Tabs extends Et2InputWidget(SlTabGroup) implements et2_IResizeab
this.createTabs(tabData);
// Use the height of the first tab if height not set
this._sizeTabs();
this._sizeTabs(tabData);
// Load any additional child nodes
for(let i = 0; i < _node.childNodes.length; i++)
@ -240,7 +240,7 @@ export class Et2Tabs extends Et2InputWidget(SlTabGroup) implements et2_IResizeab
* Use the height of the first tab if height not set
* @protected
*/
protected _sizeTabs()
protected _sizeTabs(tabData : Array<object>)
{
if(!this.tabHeight && tabData.length > 0)
{

View File

@ -35,7 +35,7 @@ export class Et2TabsMobile extends Et2Tabs
* Use the height of the first tab if height not set
* @protected
*/
protected _sizeTabs()
protected _sizeTabs(tabDates : Array<object>)
{
// no need to do anything, as we use details
}