浏览代码

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
                 - 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,

正在加载...
取消
保存