From 594c020c93a72f0fa7a4a7f4449f324b4a1149a1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 8 Sep 2020 10:09:19 +0800 Subject: [PATCH] bugfix --- kivyblocks/orientationlayout.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kivyblocks/orientationlayout.py b/kivyblocks/orientationlayout.py index a990f73..3896b08 100644 --- a/kivyblocks/orientationlayout.py +++ b/kivyblocks/orientationlayout.py @@ -54,13 +54,13 @@ class OrientationLayout(WidgetReady, SwipeBehavior, FloatLayout): def on_ready(self,*args): - self.two_widget_layout() + Clock.schedule_once(self.two_widget_layout,0) def on_size(self,*args): - self.two_widget_layout() + Clock.schedule_once(self.two_widget_layout,0) def on_pos(self,*args): - self.two_widget_layout() + Clock.schedule_once(self.two_widget_layout,0) def two_widget_layout(self, *args): if not isinstance(self.widget_main, Widget) or not isinstance(self.widget_second, Widget):