Ver código fonte

Removes empty space from the available width calculation.

j8
yanas 10 anos atrás
pai
commit
67a73b163e
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      modules/UI/videolayout/FilmStrip.js

+ 3
- 3
modules/UI/videolayout/FilmStrip.js Ver arquivo

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

Carregando…
Cancelar
Salvar