From 7af081ea9951139de4a4b62f311ec6dee79d2e02 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Mon, 12 Aug 2019 11:11:23 -0700 Subject: [PATCH] fix(avatars): re-render avatar on any resize --- modules/UI/videolayout/VideoLayout.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index 9063441f9..2c46a3f59 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -426,6 +426,10 @@ const VideoLayout = { APP.store.dispatch(setMaxReceiverVideoQuality(qualityLevel)); } + localVideoThumbnail && localVideoThumbnail.rerender(); + Object.values(remoteVideos).forEach( + remoteVideoThumbnail => remoteVideoThumbnail.rerender()); + if (onComplete && typeof onComplete === 'function') { onComplete(); } @@ -947,11 +951,6 @@ const VideoLayout = { refreshLayout() { localVideoThumbnail && localVideoThumbnail.updateDOMLocation(); VideoLayout.resizeVideoArea(); - - localVideoThumbnail && localVideoThumbnail.rerender(); - Object.values(remoteVideos).forEach( - remoteVideo => remoteVideo.rerender() - ); }, /**