Layout children in TabBarLayout right away
When Component.onCompleted is emitted, all the static children have been created, thus we can call the layout function right away. CHANGELOG: Fix TabBar not properly laid out initially, which could be observed in eg. Kickoff REVIEW: 123106
This commit is contained in:
parent
285224a2ea
commit
b7e4669db2
@ -68,7 +68,7 @@ Item {
|
|||||||
property int minimumWidth: 0
|
property int minimumWidth: 0
|
||||||
property int minimumHeight: 0
|
property int minimumHeight: 0
|
||||||
|
|
||||||
Component.onCompleted: layoutTimer.restart()
|
Component.onCompleted: priv.layoutChildren()
|
||||||
onChildrenChanged: layoutTimer.restart()
|
onChildrenChanged: layoutTimer.restart()
|
||||||
onWidthChanged: layoutTimer.restart()
|
onWidthChanged: layoutTimer.restart()
|
||||||
onHeightChanged: layoutTimer.restart()
|
onHeightChanged: layoutTimer.restart()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user