Browse Source

Change CSS rules

customisations
alemart 1 year ago
parent
commit
6fb59c3594
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/sources/video-source.ts

+ 3
- 1
src/sources/video-source.ts View File

@@ -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…
Cancel
Save