Skip to content

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

ref(video-layout): resize thumbnails first when resizing video area (#3308)

virtuacoplenny590ad90cd159
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 5960ce1351..ff743ecef1 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -854,6 +854,9 @@ const VideoLayout = {
resizeVideoArea(
forceUpdate = false,
animate = false) {
+ // Resize the thumbnails first.
+ this.resizeThumbnails(forceUpdate);
+
if (largeVideo) {
largeVideo.updateContainerSize();
largeVideo.resize(animate);
@@ -866,9 +869,6 @@ const VideoLayout = {
if (availableWidth < 0 || availableHeight < 0) {
return;
}
-
- // Resize the thumbnails first.
- this.resizeThumbnails(forceUpdate);
},
getSmallVideo(id) {