Selaa lähdekoodia

Change CSS rules

customisations
alemart 1 vuosi sitten
vanhempi
commit
6fb59c3594
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3
    1
      src/sources/video-source.ts

+ 3
- 1
src/sources/video-source.ts Näytä tiedosto

@@ -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…
Peruuta
Tallenna