mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Replace jQuery in webview.py
This commit is contained in:
parent
3e1b42bb62
commit
280f78535b
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ body {{ zoom: {zoom}; background: {background}; direction: {lang_dir}; {font} }}
|
||||||
self._bridge_context = None
|
self._bridge_context = None
|
||||||
|
|
||||||
def adjustHeightToFit(self) -> None:
|
def adjustHeightToFit(self) -> None:
|
||||||
self.evalWithCallback("$(document.body).height()", self._onHeight)
|
self.evalWithCallback("document.documentElement.offsetHeight", self._onHeight)
|
||||||
|
|
||||||
def _onHeight(self, qvar: Optional[int]) -> None:
|
def _onHeight(self, qvar: Optional[int]) -> None:
|
||||||
from aqt import mw
|
from aqt import mw
|
||||||
|
|
Loading…
Reference in a new issue