瀏覽代碼

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
                 }

Loading…
取消
儲存