This commit is contained in:
yumoqing 2019-12-22 22:15:55 +08:00
parent 591c7d69e7
commit 9649019908

View File

@ -198,7 +198,7 @@ class VPlayer(FloatLayout):
def on_fullscreen(self, instance, value):
window = self.get_parent_window()
print('window.size=',window.size)
print('window.size=',window.size,'Window size=',Window.size)
if not window:
Logger.warning('VideoPlayer: Cannot switch to fullscreen, '
'window not found.')
@ -214,6 +214,7 @@ class VPlayer(FloatLayout):
if value:
Window.fullscreen = True
print('Window size=',Window.size)
self._fullscreen_state = state = {
'parent': self.parent,
'pos': self.pos,