QtWebEngine: Adjust hints according to zoom
This commit is contained in:
parent
30f6afc2aa
commit
39fd6a6062
@ -140,14 +140,14 @@ class WebEngineElement(webelem.AbstractWebElement):
|
|||||||
width = rect['width']
|
width = rect['width']
|
||||||
height = rect['height']
|
height = rect['height']
|
||||||
if width > 1 and height > 1:
|
if width > 1 and height > 1:
|
||||||
# fix coordinates according to zoom level
|
# Fix coordinates according to zoom level
|
||||||
# FIXME:qtwebengine
|
# We're not checking for zoom-text-only here as that doesn't
|
||||||
# zoom = self._elem.webFrame().zoomFactor()
|
# exist for QtWebEngine.
|
||||||
# if not config.get('ui', 'zoom-text-only'):
|
zoom = self._tab.zoom.factor()
|
||||||
# rect["left"] *= zoom
|
rect["left"] *= zoom
|
||||||
# rect["top"] *= zoom
|
rect["top"] *= zoom
|
||||||
# width *= zoom
|
width *= zoom
|
||||||
# height *= zoom
|
height *= zoom
|
||||||
rect = QRect(rect["left"], rect["top"], width, height)
|
rect = QRect(rect["left"], rect["top"], width, height)
|
||||||
# FIXME:qtwebengine
|
# FIXME:qtwebengine
|
||||||
# frame = self._elem.webFrame()
|
# frame = self._elem.webFrame()
|
||||||
|
Loading…
Reference in New Issue
Block a user