Sfoglia il codice sorgente

fix(avatars): re-render avatar on any resize

j8
Leonard Kim 5 anni fa
parent
commit
7af081ea99
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 4
    5
      modules/UI/videolayout/VideoLayout.js

+ 4
- 5
modules/UI/videolayout/VideoLayout.js Vedi File

426
             APP.store.dispatch(setMaxReceiverVideoQuality(qualityLevel));
426
             APP.store.dispatch(setMaxReceiverVideoQuality(qualityLevel));
427
         }
427
         }
428
 
428
 
429
+        localVideoThumbnail && localVideoThumbnail.rerender();
430
+        Object.values(remoteVideos).forEach(
431
+            remoteVideoThumbnail => remoteVideoThumbnail.rerender());
432
+
429
         if (onComplete && typeof onComplete === 'function') {
433
         if (onComplete && typeof onComplete === 'function') {
430
             onComplete();
434
             onComplete();
431
         }
435
         }
947
     refreshLayout() {
951
     refreshLayout() {
948
         localVideoThumbnail && localVideoThumbnail.updateDOMLocation();
952
         localVideoThumbnail && localVideoThumbnail.updateDOMLocation();
949
         VideoLayout.resizeVideoArea();
953
         VideoLayout.resizeVideoArea();
950
-
951
-        localVideoThumbnail && localVideoThumbnail.rerender();
952
-        Object.values(remoteVideos).forEach(
953
-            remoteVideo => remoteVideo.rerender()
954
-        );
955
     },
954
     },
956
 
955
 
957
     /**
956
     /**

Loading…
Annulla
Salva