Also check x on invalid rects
This commit is contained in:
parent
293b38a92f
commit
3b894580a2
@ -72,7 +72,8 @@ class HintManager:
|
|||||||
def _draw_label(self, elem):
|
def _draw_label(self, elem):
|
||||||
"""Draw a hint label over an element."""
|
"""Draw a hint label over an element."""
|
||||||
rect = elem.geometry()
|
rect = elem.geometry()
|
||||||
if not rect.isValid():
|
if (not rect.isValid()) and rect.x() == 0:
|
||||||
|
# Most likely an invisible link
|
||||||
return
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user