mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
give toolbars an approx height to reduce flashing at startup
This commit is contained in:
parent
aeaf9df32f
commit
aa77df0805
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ class Toolbar:
|
||||||
"stats": self._statsLinkHandler,
|
"stats": self._statsLinkHandler,
|
||||||
"sync": self._syncLinkHandler,
|
"sync": self._syncLinkHandler,
|
||||||
}
|
}
|
||||||
|
self.web.setFixedHeight(30)
|
||||||
|
|
||||||
def onLoaded(self):
|
def onLoaded(self):
|
||||||
self.web.evalWithCallback("$(document.body).height()", self.onHeight)
|
self.web.evalWithCallback("$(document.body).height()", self.onHeight)
|
||||||
|
|
Loading…
Reference in a new issue