mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix scrollbar appearing in toolbar
https://anki.tenderapp.com/discussions/beta-testing/675-anki-210-beta-10/page/2#comment_43239350
This commit is contained in:
parent
737a8d934e
commit
a4b45af5a9
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
import sys
|
||||
import math
|
||||
from anki.hooks import runHook
|
||||
from aqt.qt import *
|
||||
from aqt.utils import openLink
|
||||
|
@ -274,5 +275,5 @@ body {{ zoom: {self.zoomFactor()}; {fontspec} }}
|
|||
self.evalWithCallback("$(document.body).height()", self._onHeight)
|
||||
|
||||
def _onHeight(self, qvar):
|
||||
height = int(qvar*self.zoomFactor())
|
||||
height = math.ceil(qvar*self.zoomFactor())
|
||||
self.setFixedHeight(height)
|
||||
|
|
Loading…
Reference in a new issue