@@ -180,7 +180,7 @@ Item {
180 // TODO: make this better
180 // TODO: make this better
181 // when the width changes, the highlight will lag behind due to animation, so we need to disable the animation
181 // when the width changes, the highlight will lag behind due to animation, so we need to disable the animation
182 // and adjust the highlight X immediately.
182 // and adjust the highlight X immediately.
183− width: childrenRect.width
183+ width: contentItem.width
184 Behavior on width {
184 Behavior on width {
185 SequentialAnimation {
185 SequentialAnimation {
186 ScriptAction {
186 ScriptAction {