diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-03-17 20:19:41 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-03-18 16:55:26 +0100 |
commit | 418cb72b9346ddb258cb1384fd6b95af143c2059 (patch) | |
tree | ef38303d20fc0163fc1b4f2f6a383ddbb45460a6 /src/imports/controls/material | |
parent | 9bfe2ad59977e6bcde18e03d7cb32ac701d6e883 (diff) |
Account for the padding around a menu when checking if it is interactive
If there is padding around the menu then it will mean the available
height is smaller than the containing item and as such should be
interactive.
Fixes: QTBUG-82473
Change-Id: Ie3e7568ab66aa3da93e5448c1a27c9bd2a5e486a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material')
-rw-r--r-- | src/imports/controls/material/Menu.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/controls/material/Menu.qml b/src/imports/controls/material/Menu.qml index d28713a7..94bcc15e 100644 --- a/src/imports/controls/material/Menu.qml +++ b/src/imports/controls/material/Menu.qml @@ -74,7 +74,9 @@ T.Menu { implicitHeight: contentHeight model: control.contentModel - interactive: Window.window ? contentHeight > Window.window.height : false + interactive: Window.window + ? contentHeight + control.topPadding + control.bottomPadding > Window.window.height + : false clip: true currentIndex: control.currentIndex |