@@ -27,6 +27,7 @@ Item {
27 // set from outside
27 // set from outside
28 property alias unityMenuModel: rowRepeater.model
28 property alias unityMenuModel: rowRepeater.model
29 property bool enableKeyFilter: false
29 property bool enableKeyFilter: false
30+ property real overflowWidth: width
31 // read from outside
32 // read from outside
32 readonly property bool valid: rowRepeater.count > 0
33 readonly property bool valid: rowRepeater.count > 0
@@ -94,7 +95,7 @@ Item {
94 property Item __popup: null;
95 property Item __popup: null;
95 property bool popupVisible: __popup && __popup.visible
96 property bool popupVisible: __popup && __popup.visible
96 property bool shouldDisplay: x + width + ((__ownIndex < rowRepeater.count-1) ? units.gu(2) : 0) <
97 property bool shouldDisplay: x + width + ((__ownIndex < rowRepeater.count-1) ? units.gu(2) : 0) <
97− root.width - ((__ownIndex < rowRepeater.count-1) ? overflowButton.width : 0)
98+ root.overflowWidth - ((__ownIndex < rowRepeater.count-1) ? overflowButton.width : 0)
99 implicitWidth: column.implicitWidth
100 implicitWidth: column.implicitWidth
100 implicitHeight: row.height
101 implicitHeight: row.height
@@ -130,8 +131,8 @@ Item {
133− onShouldDisplayChanged: {
134+ onVisibleChanged: {
134− if (!shouldDisplay && __popup) dismiss();
135+ if (!visible && __popup) dismiss();
137 Component.onCompleted: {
138 Component.onCompleted: {