浏览代码

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

j8
Leonard Kim 5 年前
父节点
当前提交
7af081ea99
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4
    5
      modules/UI/videolayout/VideoLayout.js

+ 4
- 5
modules/UI/videolayout/VideoLayout.js 查看文件

@@ -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
     /**

正在加载...
取消
保存