mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
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:
parent
65fd1a6772
commit
c253445c4a
1 changed files with 0 additions and 2 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue