Pārlūkot izejas kodu

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

master
Leonard Kim 6 gadus atpakaļ
vecāks
revīzija
7af081ea99
1 mainītis faili ar 4 papildinājumiem un 5 dzēšanām
  1. 4
    5
      modules/UI/videolayout/VideoLayout.js

+ 4
- 5
modules/UI/videolayout/VideoLayout.js Parādīt failu

@@ -426,6 +426,10 @@ const VideoLayout = {
426 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 433
         if (onComplete && typeof onComplete === 'function') {
430 434
             onComplete();
431 435
         }
@@ -947,11 +951,6 @@ const VideoLayout = {
947 951
     refreshLayout() {
948 952
         localVideoThumbnail && localVideoThumbnail.updateDOMLocation();
949 953
         VideoLayout.resizeVideoArea();
950
-
951
-        localVideoThumbnail && localVideoThumbnail.rerender();
952
-        Object.values(remoteVideos).forEach(
953
-            remoteVideo => remoteVideo.rerender()
954
-        );
955 954
     },
956 955
 
957 956
     /**

Notiek ielāde…
Atcelt
Saglabāt