From a819ebcff81841c9b86b1254a10dddee4a52124d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 2 Jul 2021 19:49:37 +0800 Subject: [PATCH] bugfix --- kivyblocks/widget_css.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kivyblocks/widget_css.py b/kivyblocks/widget_css.py index 4f62e83..fc6a453 100644 --- a/kivyblocks/widget_css.py +++ b/kivyblocks/widget_css.py @@ -28,7 +28,10 @@ class WidgetCSS(object): self.set_background_color() def on_size(self, o, s): - super(WidgetCSS, self).on_size(o, s) + try: + super(WidgetCSS, self).on_size(o, s) + except: + pass self.set_background_color() def on_pos(self, o, p):