diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 1809d92bf..0a03df1c8 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -274,9 +274,14 @@ class HintManager(QObject): else: display = 'none' rect = elem.geometry() + left = rect.x() + top = rect.y() + if not config.get('ui', 'zoom-text-only'): + zoom = elem.webFrame().zoomFactor() + left /= zoom + top /= zoom return self.HINT_CSS.format( - left=rect.x(), top=rect.y(), config=objreg.get('config'), - display=display) + left=left, top=top, config=objreg.get('config'), display=display) def _draw_label(self, elem, string): """Draw a hint label over an element.