From feb6df436fa8fa91ccf870f87a84293a5b570561 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 7 Jul 2021 12:46:05 +0800 Subject: [PATCH] bugfix --- kivyblocks/twosides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivyblocks/twosides.py b/kivyblocks/twosides.py index 36ad3af..0821f20 100644 --- a/kivyblocks/twosides.py +++ b/kivyblocks/twosides.py @@ -41,7 +41,7 @@ class TwoSides(WidgetReady, BoxLayout): def set_switch_button_pos(self): h = self.switch_button.height - self.switch_button.pos = (4, Window.height - h - 4) + self.switch_button.pos = (4, self.height - h - 4) def show_switch_image(self, o, v=None): def show(*args):