Sfoglia il codice sorgente

tile-view: fix number of columns calculation

master
Paul Mestrum 5 anni fa
parent
commit
b70633ef24
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      react/features/video-layout/functions.js

+ 1
- 1
react/features/video-layout/functions.js Vedi File

@@ -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…
Annulla
Salva