mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -04:00
Fix URL tooltip position on screen
This commit is contained in:
parent
111a1b16e0
commit
27823b2675
@ -79,9 +79,7 @@ ZimView::ZimView(TabBar *tabBar, QWidget *parent)
|
||||
* we can be sure the current tab is a web page
|
||||
* (mp_tabBar->currentWebView() is not nullptr)
|
||||
*/
|
||||
auto height = mp_tabBar->currentWebView()->height() + 1;
|
||||
|
||||
auto pos = mp_tabBar->mapToGlobal(QPoint(-3, height));
|
||||
auto pos = mp_tabBar->mapToGlobal(QPoint(-3, mp_tabBar->currentWebView()->height() - mp_tabBar->PdmHeightMM + 2));
|
||||
QToolTip::showText(pos, link);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user