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(tile-view): thumbnail videos should cover entire thumbnail

Leonard Kima1ef845663a4
diff --git a/modules/UI/videolayout/Filmstrip.js b/modules/UI/videolayout/Filmstrip.js
index c7d310407f..5642b42453 100644
--- a/modules/UI/videolayout/Filmstrip.js
+++ b/modules/UI/videolayout/Filmstrip.js
@@ -301,10 +301,11 @@ const Filmstrip = {
const initialWidth = viewWidth / columns;
const aspectRatioHeight = initialWidth / tileAspectRatio;
- const heightOfEach = Math.min(
+ const heightOfEach = Math.floor(Math.min(
aspectRatioHeight,
- viewHeight / visibleRows);
- const widthOfEach = tileAspectRatio * heightOfEach;
+ viewHeight / visibleRows
+ ));
+ const widthOfEach = Math.floor(tileAspectRatio * heightOfEach);
return {
localVideo: {