Commit d0221167 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Allow some more space for popup on most desktops

Most desktops allow popups to overlap the taskbar. We should allow this
additional space to be used by the completion popup.
parent 89985c3d
......@@ -259,7 +259,11 @@ void CompletionWidget::updatePositionAndSize(int startPos)
// Determine the position, keeping the popup on the screen
const QRect cursorRect = m_editor->cursorRect(startPos);
const QDesktopWidget *desktop = QApplication::desktop();
#ifdef Q_OS_MAC
const QRect screen = desktop->availableGeometry(desktop->screenNumber(this));
const QRect screen = desktop->screenGeometry(desktop->screenNumber(this));
QPoint pos = cursorRect.bottomLeft();
pos.rx() -= 16 + frameWidth; // Space for the icons
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment