This commit is contained in:
yumoqing 2020-09-08 10:09:19 +08:00
parent fc3461f0d0
commit 594c020c93

View File

@ -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):