parent
999474c751
commit
ee02f339d7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user