@@ -38,6 +38,11 @@ IndicatorDelegate {
3838
3939 implicitWidth: mainItems.width
4040
41+ // Prevent ListView from removing us from the view while expanding.
42+ // If we're the PanelBar's initial item, our removal will make it lose
43+ // track of us and cause its positioning to go wrong.
44+ ListView.delayRemove: stateTransition.running
45+
4146 MouseArea {
4247 readonly property int stepUp: 1
4348 readonly property int stepDown: -1
@@ -226,6 +231,7 @@ IndicatorDelegate {
226231
227232 transitions: [
228233 Transition {
234+ id: stateTransition
229235 PropertyAction { target: d; property: "useFallbackIcon" }
230236 AnchorAnimation {
231237 targets: [ mainItems, iconsItem, leftLabelItem, rightLabelItem ]