Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Leonard Kim7af081ea9951
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 9063441f99..2c46a3f59e 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()
- );
},
/**