@@ -26,6 +26,7 @@ UbuntuShape {
27 objectName: "menu"
27 objectName: "menu"
28 backgroundColor: theme.palette.normal.overlay
28 backgroundColor: theme.palette.normal.overlay
29+ property PanelState panelState
30 signal childActivated()
31 signal childActivated()
@@ -101,7 +102,7 @@ UbuntuShape {
101 property real __minimumWidth: units.gu(20)
102 property real __minimumWidth: units.gu(20)
102 property real __maximumWidth: ApplicationMenusLimits.screenWidth * 0.7
103 property real __maximumWidth: ApplicationMenusLimits.screenWidth * 0.7
103 property real __minimumHeight: units.gu(2)
104 property real __minimumHeight: units.gu(2)
104− property real __maximumHeight: ApplicationMenusLimits.screenHeight - PanelState.panelHeight
105+ property real __maximumHeight: ApplicationMenusLimits.screenHeight - panelState.panelHeight
106 signal dismissAll()
107 signal dismissAll()
@@ -476,6 +477,7 @@ UbuntuShape {
476 item.desiredX = Qt.binding(function() { return submenuLoader.desiredX; });
477 item.desiredX = Qt.binding(function() { return submenuLoader.desiredX; });
477 item.desiredY = Qt.binding(function() { return submenuLoader.desiredY; });
478 item.desiredY = Qt.binding(function() { return submenuLoader.desiredY; });
478 item.substractWidth = Qt.binding(function() { return submenuLoader.substractWidth; });
479 item.substractWidth = Qt.binding(function() { return submenuLoader.substractWidth; });
480+ item.panelState = Qt.binding(function() { return root.panelState; });
481 Keys.onLeftPressed: retreat()
483 Keys.onLeftPressed: retreat()