@@ -27,6 +27,7 @@ Item {
2727 // set from outside
2828 property alias unityMenuModel: rowRepeater.model
2929 property bool enableKeyFilter: false
30+ property real overflowWidth: width
3031
3132 // read from outside
3233 readonly property bool valid: rowRepeater.count > 0
@@ -94,7 +95,7 @@ Item {
9495 property Item __popup: null;
9596 property bool popupVisible: __popup && __popup.visible
9697 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)
9899
99100 implicitWidth: column.implicitWidth
100101 implicitHeight: row.height
@@ -130,8 +131,8 @@ Item {
130131 }
131132 }
132133
133− onShouldDisplayChanged: {
134− if (!shouldDisplay && __popup) dismiss();
134+ onVisibleChanged: {
135+ if (!visible && __popup) dismiss();
135136 }
136137
137138 Component.onCompleted: {