浏览代码

Change CSS rules

customisations
alemart 1年前
父节点
当前提交
6fb59c3594
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      src/sources/video-source.ts

+ 3
- 1
src/sources/video-source.ts 查看文件

@@ -151,7 +151,9 @@ export class VideoSource implements Source
151 151
                 if(video.hidden) {
152 152
                     video.hidden = false;
153 153
                     video.style.setProperty('opacity', '0');
154
-                    video.style.setProperty('position', 'absolute');
154
+                    video.style.setProperty('position', 'fixed'); // make sure that it's visible on-screen
155
+                    video.style.setProperty('left', '0');
156
+                    video.style.setProperty('top', '0');
155 157
                     //video.style.setProperty('display', 'none'); // doesn't work. Same as video.hidden
156 158
                     //video.style.setProperty('visibility', 'hidden'); // doesn't work either
157 159
                 }

正在加载...
取消
保存