From bd55149846aa70d5201ffd6ea6f8990fb2b04595 Mon Sep 17 00:00:00 2001 From: Abdo Date: Sun, 15 Oct 2023 03:06:28 +0300 Subject: [PATCH] Reduce shaking of bottom bar (#2734) --- qt/aqt/toolbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/toolbar.py b/qt/aqt/toolbar.py index 32bfbd20f..b6603c637 100644 --- a/qt/aqt/toolbar.py +++ b/qt/aqt/toolbar.py @@ -202,7 +202,7 @@ class BottomWebView(ToolbarWebView): def animate_height(self, height: int) -> None: self.web_height = height - if self.mw.pm.reduce_motion(): + if self.mw.pm.reduce_motion() or height == self.height(): self.setFixedHeight(height) else: # Collapse/Expand animation