From 6372d86065aaa97b897d3dc58bc8ada91e46657c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 7 Jul 2021 12:51:56 +0800 Subject: [PATCH] bugfix --- kivyblocks/twosides.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kivyblocks/twosides.py b/kivyblocks/twosides.py index 0821f20..4bd1964 100644 --- a/kivyblocks/twosides.py +++ b/kivyblocks/twosides.py @@ -100,6 +100,8 @@ class TwoSides(WidgetReady, BoxLayout): def on_size(self,*args): if self.width >= self.height: + if self.switch_button: + self.set_switch_button_pos() print('twosides.py:W-Window.rotation=', self.app.get_rotation(), Window.size)