on xenial help sign in
Fix 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

commit2012c490053b1daeb3f373d2c9218d567778aa73 authorAlbert Astals <albert.astals@canonical.com> dateWed 5 Mar 2014, 09:44 (13 years ago) parente4e8a68
1 file changed+1−1
qml/Panel/IndicatorRow.qml+1−1
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