mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
Reduce shaking of bottom bar (#2734)
This commit is contained in:
parent
b2d515c8bb
commit
bd55149846
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ class BottomWebView(ToolbarWebView):
|
||||||
def animate_height(self, height: int) -> None:
|
def animate_height(self, height: int) -> None:
|
||||||
self.web_height = height
|
self.web_height = height
|
||||||
|
|
||||||
if self.mw.pm.reduce_motion():
|
if self.mw.pm.reduce_motion() or height == self.height():
|
||||||
self.setFixedHeight(height)
|
self.setFixedHeight(height)
|
||||||
else:
|
else:
|
||||||
# Collapse/Expand animation
|
# Collapse/Expand animation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue