Revert "Reset zoom on page transition"

This reverts commit ee70006ec4.

There have been a number of people complaining that the current
behaviour is not intuitive, and they have a point - it's not the
way browsers behave when you navigate between pages.
This commit is contained in:
Damien Elmes 2022-12-03 23:14:45 +10:00
parent 65fd1a6772
commit c253445c4a

View file

@ -332,7 +332,6 @@ class AnkiWebView(QWebEngineView):
self._domDone = True self._domDone = True
self._queueAction("setHtml", html) self._queueAction("setHtml", html)
self.set_open_links_externally(True) self.set_open_links_externally(True)
self.setZoomFactor(1)
self.allow_drops = False self.allow_drops = False
self.show() self.show()
@ -677,7 +676,6 @@ html {{ {font} }}
else: else:
extra = "" extra = ""
self.hide_while_preserving_layout() self.hide_while_preserving_layout()
self.setZoomFactor(1)
self.load_url(QUrl(f"{mw.serverURL()}_anki/pages/{name}.html{extra}")) self.load_url(QUrl(f"{mw.serverURL()}_anki/pages/{name}.html{extra}"))
self.add_dynamic_css_and_classes_then_show() self.add_dynamic_css_and_classes_then_show()