From 35da623762dd89a97018b02c387124e49953d7e8 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 22 Dec 2019 23:20:46 +0800 Subject: [PATCH] bugfix --- kivyblocks/pagescontainer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kivyblocks/pagescontainer.py b/kivyblocks/pagescontainer.py index 63b2eec..e54f2bf 100644 --- a/kivyblocks/pagescontainer.py +++ b/kivyblocks/pagescontainer.py @@ -19,9 +19,10 @@ class PageContainer(FloatLayout): # on_orientation=self.reshowBackButton) def on_window_size(self,o,v=None): - print('on_window_size event fired ....',Window.size) - self.size = Window.size - self.reshowBackButton() + if self.size != Window.size: + print('on_window_size event fired ....',Window.size) + self.size = Window.size + self.reshowBackButton() def reshowBackButton(self,o=None,v=None): print(self.size)