From f78f51a16886bc152d6b4651b1ccb252310c3485 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 23 Dec 2019 09:54:18 +0800 Subject: [PATCH] bugfix --- kivyblocks/vplayer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 118befa..e811ec4 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -244,7 +244,6 @@ class VPlayer(FloatLayout): else: Window.fullscreen = False state = self._fullscreen_state - Window.size = state['WindowSize'] window.remove_widget(self) for child in state['window_children']: window.add_widget(child) @@ -254,6 +253,8 @@ class VPlayer(FloatLayout): self.size = state['size'] if state['parent'] is not window: state['parent'].add_widget(self) + Window.size = state['WindowSize'] + print('state_size=',state['WindowSize'], 'windowsize=',Window.size) def buildMenu(self,obj,touch): if not self.collide_point(*touch.pos):