on xenial help sign in
Merge pull request #158 from ubports/xenial_-_edge_-_fixpanelpos
778b273Marius Gripsgard
qml/Panel/MenuContent.qml+4−1
@@ -45,7 +45,6 @@ Rectangle {
45 model: content.model
45 model: content.model
46
46
47 highlightFollowsCurrentItem: false
47 highlightFollowsCurrentItem: false
48− contentX: currentIndex * width
49 interactive: false
48 interactive: false
50 orientation: ListView.Horizontal
49 orientation: ListView.Horizontal
51 // Load all the indicator menus (a big number)
50 // Load all the indicator menus (a big number)
@@ -56,6 +55,10 @@ Rectangle {
56 listViewContent.currentIndex = content.currentMenuIndex;
55 listViewContent.currentIndex = content.currentMenuIndex;
57 }
56 }
58
57
58+ onCurrentIndexChanged: {
59+ positionViewAtIndex(currentIndex, ListView.Beginning);
60+ }
61+
59 delegate: Loader {
62 delegate: Loader {
60 id: loader
63 id: loader
61
64