@@ -26,6 +26,7 @@ UbuntuShape {
2626 id: root
2727 objectName: "menu"
2828 backgroundColor: theme.palette.normal.overlay
29+ property PanelState panelState
2930
3031 signal childActivated()
3132
@@ -101,7 +102,7 @@ UbuntuShape {
101102 property real __minimumWidth: units.gu(20)
102103 property real __maximumWidth: ApplicationMenusLimits.screenWidth * 0.7
103104 property real __minimumHeight: units.gu(2)
104− property real __maximumHeight: ApplicationMenusLimits.screenHeight - PanelState.panelHeight
105+ property real __maximumHeight: ApplicationMenusLimits.screenHeight - panelState.panelHeight
105106
106107 signal dismissAll()
107108
@@ -476,6 +477,7 @@ UbuntuShape {
476477 item.desiredX = Qt.binding(function() { return submenuLoader.desiredX; });
477478 item.desiredY = Qt.binding(function() { return submenuLoader.desiredY; });
478479 item.substractWidth = Qt.binding(function() { return submenuLoader.substractWidth; });
480+ item.panelState = Qt.binding(function() { return root.panelState; });
479481 }
480482
481483 Keys.onLeftPressed: retreat()