diff --git a/src/plugins/coreplugin/find/optionspopup.cpp b/src/plugins/coreplugin/find/optionspopup.cpp index 532bd22390d..ab383b6e7b8 100644 --- a/src/plugins/coreplugin/find/optionspopup.cpp +++ b/src/plugins/coreplugin/find/optionspopup.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include using namespace Utils; @@ -64,7 +65,8 @@ OptionsPopup::OptionsPopup(QWidget *parent, const QVector &commands) layout->addWidget(checkBox); } const QPoint globalPos = parent->mapToGlobal(QPoint(0, -sizeHint().height())); - move(globalPos.x(), std::max(globalPos.y(), 0)); + const QRect screenGeometry = parent->screen()->availableGeometry(); + move(globalPos.x(), std::max(globalPos.y(), screenGeometry.y())); } bool OptionsPopup::event(QEvent *ev)