summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Tröscher <fritz_van_tom@hotmail.com>2011-08-17 21:21:53 +0200
committerJohannes Tröscher <fritz_van_tom@hotmail.com>2011-08-17 21:21:53 +0200
commit000d8e3ca2fcba908bc1e237e3ee660e80231680 (patch)
tree4d6c75e2a502071b6ecd42f4776e0b3da868e4ab /src
parentRevert "This commit, available just for the master branch cause of the string... (diff)
downloadrekonq-000d8e3ca2fcba908bc1e237e3ee660e80231680.tar.xz
detect zoom - and searchBar size in notifyMessage REVIEW:102338
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 89712961..12027a94 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1202,7 +1202,9 @@ void MainWindow::notifyMessage(const QString &msg, Rekonq::Notify status)
const int vScrollbarSize = verticalScrollbarIsVisible ? scrollbarExtent : 0;
const QPoint mousePos = mapFromGlobal(QCursor::pos());
- int y = height() - m_popup->height() - hScrollbarSize;
+ const QPoint bottomPoint = m_view->mapTo(this, m_view->geometry().bottomLeft());
+ // +1 because bottom() returns top() + height() - 1 , see QRect doku
+ int y = bottomPoint.y() + 1 - m_popup->height() - hScrollbarSize;
int x = QRect(QPoint(0, y), labelSize).contains(mousePos)
? width() - labelSize.width() - vScrollbarSize
: 0;