Check if hints are inside screen
This commit is contained in:
parent
3b894580a2
commit
a2deba68dc
@ -75,6 +75,11 @@ class HintManager:
|
|||||||
if (not rect.isValid()) and rect.x() == 0:
|
if (not rect.isValid()) and rect.x() == 0:
|
||||||
# Most likely an invisible link
|
# Most likely an invisible link
|
||||||
return
|
return
|
||||||
|
framegeom = self._frame.geometry()
|
||||||
|
framegeom.translate(self._frame.scrollPosition())
|
||||||
|
if not framegeom.contains(rect):
|
||||||
|
# out of screen
|
||||||
|
return
|
||||||
css = HintManager.HINT_CSS.format(left=rect.x(), top=rect.y(),
|
css = HintManager.HINT_CSS.format(left=rect.x(), top=rect.y(),
|
||||||
config=config.instance)
|
config=config.instance)
|
||||||
doc = self._frame.documentElement()
|
doc = self._frame.documentElement()
|
||||||
|
Loading…
Reference in New Issue
Block a user