Removes empty space from the available width calculation.

This commit is contained in:
yanas 2016-03-02 14:46:57 -06:00
parent ad44cc518a
commit 67a73b163e
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ const FilmStrip = {
- parseInt(this.filmStrip.css('paddingLeft'), 10) - parseInt(this.filmStrip.css('paddingLeft'), 10)
- parseInt(this.filmStrip.css('paddingRight'), 10) - parseInt(this.filmStrip.css('paddingRight'), 10)
- parseInt(this.filmStrip.css('borderLeftWidth'), 10) - parseInt(this.filmStrip.css('borderLeftWidth'), 10)
- parseInt(this.filmStrip.css('borderRightWidth'), 10); - parseInt(this.filmStrip.css('borderRightWidth'), 10) - 5;
let availableWidth = Math.floor( let availableWidth = Math.floor(
(videoAreaAvailableWidth - numvids * ( (videoAreaAvailableWidth - numvids * (
@ -75,7 +75,7 @@ const FilmStrip = {
+ parseInt(localVideoContainer.css('paddingRight'), 10) + parseInt(localVideoContainer.css('paddingRight'), 10)
+ parseInt(localVideoContainer.css('marginLeft'), 10) + parseInt(localVideoContainer.css('marginLeft'), 10)
+ parseInt(localVideoContainer.css('marginRight'), 10))) + parseInt(localVideoContainer.css('marginRight'), 10)))
/ numvids) - 20; / numvids);
let maxHeight let maxHeight
// If the MAX_HEIGHT property hasn't been specified // If the MAX_HEIGHT property hasn't been specified