mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #774 from androidpcguy/fix-ui-scale
fix: sizing issue with scale UI
This commit is contained in:
commit
41d74592f0
2 changed files with 2 additions and 7 deletions
|
@ -60,6 +60,7 @@ phwoo <github.com/phwoo>
|
|||
Soren Bjornstad <anki@sorenbjornstad.com>
|
||||
Aleksa Sarai <cyphar@cyphar.com>
|
||||
Jakub Kaczmarzyk <jakub.kaczmarzyk@gmail.com>
|
||||
Akshara Balachandra <akshara.bala.18@gmail.com>
|
||||
lukkea <github.com/lukkea/>
|
||||
|
||||
********************
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
import dataclasses
|
||||
import json
|
||||
import math
|
||||
import re
|
||||
import sys
|
||||
from typing import Any, Callable, List, Optional, Sequence, Tuple
|
||||
|
@ -580,12 +579,7 @@ body {{ zoom: {zoom}; background: {background}; direction: {lang_dir}; {font} }}
|
|||
mw.progress.timer(1000, mw.reset, False)
|
||||
return
|
||||
|
||||
scaleFactor = self.zoomFactor()
|
||||
if scaleFactor == 1:
|
||||
scaleFactor = mw.pm.uiScale()
|
||||
|
||||
height = math.ceil(qvar * scaleFactor)
|
||||
self.setFixedHeight(height)
|
||||
self.setFixedHeight(qvar)
|
||||
|
||||
def set_bridge_command(self, func: Callable[[str], Any], context: Any) -> None:
|
||||
"""Set a handler for pycmd() messages received from Javascript.
|
||||
|
|
Loading…
Reference in a new issue