Skip to content

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

tile-view: fix number of columns calculation

Paul Mestrumb70633ef24f7
diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.js
index ab8ec3625b..47c7bf1fa6 100644
--- a/react/features/video-layout/functions.js
+++ b/react/features/video-layout/functions.js
@@ -31,7 +31,7 @@ export function getCurrentLayout(state: Object) {
export function getMaxColumnCount() {
const configuredMax = interfaceConfig.TILE_VIEW_MAX_COLUMNS || 5;
- return Math.max(Math.min(configuredMax, 1), 5);
+ return Math.min(Math.max(configuredMax, 1), 5);
}
/**