Переглянути джерело

Removes empty space from the available width calculation.

j8
yanas 9 роки тому
джерело
коміт
67a73b163e
1 змінених файлів з 3 додано та 3 видалено
  1. 3
    3
      modules/UI/videolayout/FilmStrip.js

+ 3
- 3
modules/UI/videolayout/FilmStrip.js Переглянути файл

@@ -65,7 +65,7 @@ const FilmStrip = {
65 65
                 - parseInt(this.filmStrip.css('paddingLeft'), 10)
66 66
                 - parseInt(this.filmStrip.css('paddingRight'), 10)
67 67
                 - parseInt(this.filmStrip.css('borderLeftWidth'), 10)
68
-                - parseInt(this.filmStrip.css('borderRightWidth'), 10);
68
+                - parseInt(this.filmStrip.css('borderRightWidth'), 10) - 5;
69 69
 
70 70
         let availableWidth = Math.floor(
71 71
                 (videoAreaAvailableWidth - numvids * (
@@ -75,13 +75,13 @@ const FilmStrip = {
75 75
                 + parseInt(localVideoContainer.css('paddingRight'), 10)
76 76
                 + parseInt(localVideoContainer.css('marginLeft'), 10)
77 77
                 + parseInt(localVideoContainer.css('marginRight'), 10)))
78
-                / numvids) - 20;
78
+                / numvids);
79 79
 
80 80
         let maxHeight
81 81
             // If the MAX_HEIGHT property hasn't been specified
82 82
             // we have the static value.
83 83
             = Math.min( interfaceConfig.FILM_STRIP_MAX_HEIGHT || 160,
84
-            availableHeight);
84
+                        availableHeight);
85 85
 
86 86
         availableHeight
87 87
             = Math.min( maxHeight,

Завантаження…
Відмінити
Зберегти