on xenial help sign in
forceLayout before calling positionViewAtIndex
e804c19Albert Astals Cid
qml/Dash/Previews/Preview.qml+4−1
@@ -105,7 +105,10 @@ Item {
105
105
106 onFocusChanged: if (focus) column.positionViewAtIndex(index, ListView.Contain)
106 onFocusChanged: if (focus) column.positionViewAtIndex(index, ListView.Contain)
107
107
108+ onHeightChanged: if (focus) {
109+ column.forceLayout();
108− onHeightChanged: if (focus) column.positionViewAtIndex(index, ListView.Contain)
110+ column.positionViewAtIndex(index, ListView.Contain)
111+ }
109 }
112 }
110 }
113 }
111 }
114 }