Преглед изворни кода

tile-view: fix number of columns calculation

master
Paul Mestrum пре 5 година
родитељ
комит
b70633ef24
No account linked to committer's email address
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      react/features/video-layout/functions.js

+ 1
- 1
react/features/video-layout/functions.js Прегледај датотеку

@@ -31,7 +31,7 @@ export function getCurrentLayout(state: Object) {
31 31
 export function getMaxColumnCount() {
32 32
     const configuredMax = interfaceConfig.TILE_VIEW_MAX_COLUMNS || 5;
33 33
 
34
-    return Math.max(Math.min(configuredMax, 1), 5);
34
+    return Math.min(Math.max(configuredMax, 1), 5);
35 35
 }
36 36
 
37 37
 /**

Loading…
Откажи
Сачувај