From b70633ef24f75bb2d87939468b985b6269ac8180 Mon Sep 17 00:00:00 2001 From: Paul Mestrum Date: Mon, 6 Apr 2020 19:42:53 +0200 Subject: [PATCH] tile-view: fix number of columns calculation --- react/features/video-layout/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.js index ab8ec3625..47c7bf1fa 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); } /**