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:
Damien Elmes 2018-10-29 21:08:16 +10:00
parent 3126611ecf
commit a9f9df5109

View file

@ -352,11 +352,7 @@ body {{ zoom: {}; {} }}
self.onBridgeCmd = self.defaultOnBridgeCmd
def adjustHeightToFit(self):
from aqt import mw
# 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)
self.evalWithCallback("$(document.body).height()", self._onHeight)
def _onHeight(self, qvar):
if qvar is None: