diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-01-13 15:26:49 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-01-13 16:49:27 +0100 |
commit | 49285034d2f1235bc3caa99fc895ecf70393f380 (patch) | |
tree | a8d1f141b919e632ce93596c2d264ba1d9aae8a7 | |
parent | bbe7cac483b600cf6825deb4c73b93d769939bfc (diff) | |
download | qtquickcontrols-49285034d2f1235bc3caa99fc895ecf70393f380.tar.gz |
Use all, not just available geometry in menu popup
A menu popup may be positioned partly or fully outside
of the available geometry. For example if a Windows
side bar (appbar) is opening such a popup, it will be
completely outside of the available geometry (rcWork from
MONITORINFOEX) since such sidebars are not part of that.
Instead, use the regular, full geometry.
Task-number: QTBUG-43693
Change-Id: Ibd22150cb7ec94a46df2facbfc1bf5f20bda51e5
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
-rw-r--r-- | src/controls/qquickmenupopupwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/qquickmenupopupwindow.cpp b/src/controls/qquickmenupopupwindow.cpp index 787896d8..b7f70db7 100644 --- a/src/controls/qquickmenupopupwindow.cpp +++ b/src/controls/qquickmenupopupwindow.cpp @@ -93,7 +93,7 @@ void QQuickMenuPopupWindow::setGeometry(int posx, int posy, int w, int h) pw = parentItem()->window(); if (!pw) pw = this; - QRect g = pw->screen()->availableVirtualGeometry(); + QRect g = pw->screen()->virtualGeometry(); if (posx + w > g.right()) { if (qobject_cast<QQuickMenuPopupWindow *>(transientParent())) { |