first tab is the current on load
fix sizing problems on first load
This commit is contained in:
parent
2c7e559f04
commit
2fdf11eabf
@ -88,5 +88,10 @@ Item {
|
||||
rightMargin: backgroundFrame.margins.right + buttonFrame.margins.right
|
||||
bottomMargin: backgroundFrame.margins.bottom + buttonFrame.margins.bottom
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (!root.currentTab) {
|
||||
root.currentTab = tabBarLayout.children[0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -81,8 +81,8 @@ Item {
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if (internal.tabGroup.currentTab == tab) {
|
||||
parent.parent.currentTab = root
|
||||
if (internal.tabGroup && internal.tabGroup.currentTab == tab) {
|
||||
internal.tabGroup.currentTab = tab
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user