From ae8bba0f633ed133cdcbb6890d483d2229a85b25 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko Date: Sat, 2 Apr 2022 11:42:03 +0300 Subject: [PATCH] Update tabsLayout.go --- tabsLayout.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tabsLayout.go b/tabsLayout.go index 7b9b6a9..f51795f 100644 --- a/tabsLayout.go +++ b/tabsLayout.go @@ -79,14 +79,15 @@ type tabsLayoutData struct { } // NewTabsLayout create new TabsLayout object and return it -func NewTabsLayout(session Session) TabsLayout { +func NewTabsLayout(session Session, params Params) TabsLayout { view := new(tabsLayoutData) view.Init(session) + setInitParams(view, params) return view } func newTabsLayout(session Session) View { - return NewTabsLayout(session) + return NewTabsLayout(session, nil) } // Init initialize fields of ViewsContainer by default values