From 559b0c75a69af1e14a4bf9dda32bbec2c4297ee7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 8 Aug 2020 09:31:30 +0800 Subject: [PATCH] bugfix --- kivyblocks/vplayer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 90196e3..61fb6e8 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -71,6 +71,10 @@ class BaseVPlayer(FloatLayout): if vfile is not None: self.setSource(vfile) + def on_size(self,*args): + self._video.size = self.size + print('*********************on_size()**************') + def positionChanged(self,o,v): if self.muteFlg: self._video.volume = 0 @@ -352,7 +356,7 @@ class VPlayer(Swipe_VPlayer): def show_hide_menu(self,obj,touch): if not self.collide_point(*touch.pos): - print('not inside the player') + print('not inside the player',touch.pos,self.pos,self.size) return if touch.is_double_tap: