Fix indicators highlight position on 5.2
We need to take into account the list originX if we're using the list delegates x outside the list itself
commitd37765f18e7b6fe90c6b25caf8e9448777cfb90b
authorAlbert Astals <albert.astals@canonical.com>
dateWed 19 Mar 2014, 16:39 (13 years ago)
parentfa3fb5209b4fd0
qml/Panel/IndicatorRow.qml+1−1
@@ -137,7 +137,7 @@ Item {
137137 anchors.top: row.bottom
138138 visible: indicatorRow.currentItem != null
139139
140− property real intendedX: row.x + (indicatorRow.currentItem != null ? indicatorRow.currentItem.x + centerOffset : 0)
140+ property real intendedX: row.x + (indicatorRow.currentItem != null ? (indicatorRow.currentItem.x - row.originX) + centerOffset : 0)
141141 x: intendedX >= row.x ? (intendedX + width <= row.x + row.width ? intendedX : row.x + row.width - width) : row.x // listview boundaries
142142 width: indicatorRow.currentItem != null ? indicatorRow.currentItem.width : 0
143143