summaryrefslogtreecommitdiff
path: root/src/controls/Styles/Desktop/MenuStyle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/Styles/Desktop/MenuStyle.qml')
-rw-r--r--src/controls/Styles/Desktop/MenuStyle.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/Styles/Desktop/MenuStyle.qml b/src/controls/Styles/Desktop/MenuStyle.qml
index 953f6a32..282860ae 100644
--- a/src/controls/Styles/Desktop/MenuStyle.qml
+++ b/src/controls/Styles/Desktop/MenuStyle.qml
@@ -37,6 +37,7 @@
**
****************************************************************************/
+import QtQml 2.14 as Qml
import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.2
@@ -78,10 +79,11 @@ Style {
// ### The Screen attached property can only be set on an Item,
// ### and will get its values only when put on a Window.
readonly property int desktopAvailableHeight: Screen.desktopAvailableHeight
- Binding {
+ Qml.Binding {
target: styleRoot
property: "__maxPopupHeight"
value: desktopAvailableHeight * 0.99
+ restoreMode: Binding.RestoreBinding
}
}