mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Revert "workaround bottom toolbar issue on macOS/qt5.12"
This reverts commit 5e3f35a32c
.
underlying issue should be fixed in qt5.12beta3
This commit is contained in:
parent
3126611ecf
commit
a9f9df5109
1 changed files with 1 additions and 5 deletions
|
@ -352,11 +352,7 @@ body {{ zoom: {}; {} }}
|
||||||
self.onBridgeCmd = self.defaultOnBridgeCmd
|
self.onBridgeCmd = self.defaultOnBridgeCmd
|
||||||
|
|
||||||
def adjustHeightToFit(self):
|
def adjustHeightToFit(self):
|
||||||
from aqt import mw
|
self.evalWithCallback("$(document.body).height()", self._onHeight)
|
||||||
# fixes bottom toolbar intermittently breaking on startup
|
|
||||||
def delayedResize(qvar):
|
|
||||||
mw.progress.timer(10, lambda: self._onHeight(qvar), False)
|
|
||||||
self.evalWithCallback("$(document.body).height()", delayedResize)
|
|
||||||
|
|
||||||
def _onHeight(self, qvar):
|
def _onHeight(self, qvar):
|
||||||
if qvar is None:
|
if qvar is None:
|
||||||
|
|
Loading…
Reference in a new issue