Commit f26ad96f authored by Prince Gupta's avatar Prince Gupta Committed by Jean-Baptiste Kempf
Browse files

qml/gridview: fix flickering issue with expand delegates

parent 5f93f0cb
......@@ -443,7 +443,13 @@ NavigableFocusScope {
sourceComponent: expandDelegate
active: root.expandIndex !== -1
focus: active
onLoaded: item.height = 0
onLoaded: {
item.height = 0
// only make loader visible after setting initial y pos from layout() as to not get flickering
expandItemLoader.visible = false
}
}
......@@ -551,6 +557,8 @@ NavigableFocusScope {
if (root.expandIndex !== -1) {
var expandItemPos = root.getItemPos(expandItemGridId)
expandItem.y = expandItemPos[1]
if (!expandItemLoader.visible)
expandItemLoader.visible = true
}
// Place the delegates after the expandItem
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment