Rename method

This commit is contained in:
Ilya Daynatovich 2016-11-08 13:10:50 +02:00 committed by yanas
parent d3df082e3d
commit 34acadc3b5
1 changed files with 11 additions and 9 deletions

View File

@ -205,7 +205,7 @@ const FilmStrip = {
*/ */
let videoAreaAvailableWidth let videoAreaAvailableWidth
= UIUtil.getAvailableVideoWidth() = UIUtil.getAvailableVideoWidth()
- this.getFilmstripPanelsWidth() - this._getFilmstripWidthExceptThumbnails()
- UIUtil.parseCssInt(this.filmStrip.css('right'), 10) - UIUtil.parseCssInt(this.filmStrip.css('right'), 10)
- UIUtil.parseCssInt(this.filmStrip.css('paddingLeft'), 10) - UIUtil.parseCssInt(this.filmStrip.css('paddingLeft'), 10)
- UIUtil.parseCssInt(this.filmStrip.css('paddingRight'), 10) - UIUtil.parseCssInt(this.filmStrip.css('paddingRight'), 10)
@ -268,22 +268,24 @@ const FilmStrip = {
}, },
/** /**
* * Traverse all elements inside the filmstrip
* Calculates width of all panels inside filmstrip * and calculates the sum of all of them except
* @returns {number} width * remote videos element. Used for calculation of
* available width for video thumbnails
* @returns {number} calculated width
* @private
*/ */
getFilmstripPanelsWidth() { _getFilmstripWidthExceptThumbnails() {
let filmstripPanelsWidth = 0;
let className = this.filmStripContainerClassName; let className = this.filmStripContainerClassName;
let width = 0;
$(`.${className}`) $(`.${className}`)
.children() .children()
.each(function () { .each(function () {
if (this.id !== 'remoteVideos') { if (this.id !== 'remoteVideos') {
filmstripPanelsWidth += $(this).outerWidth(); width += $(this).outerWidth();
} }
}); });
return width;
return filmstripPanelsWidth;
}, },
/** /**