Browse Source

Rename method

master
Ilya Daynatovich 8 years ago
parent
commit
34acadc3b5
1 changed files with 11 additions and 9 deletions
  1. 11
    9
      modules/UI/videolayout/FilmStrip.js

+ 11
- 9
modules/UI/videolayout/FilmStrip.js View File

@@ -205,7 +205,7 @@ const FilmStrip = {
205 205
          */
206 206
         let videoAreaAvailableWidth
207 207
             = UIUtil.getAvailableVideoWidth()
208
-            - this.getFilmstripPanelsWidth()
208
+            - this._getFilmstripWidthExceptThumbnails()
209 209
             - UIUtil.parseCssInt(this.filmStrip.css('right'), 10)
210 210
             - UIUtil.parseCssInt(this.filmStrip.css('paddingLeft'), 10)
211 211
             - UIUtil.parseCssInt(this.filmStrip.css('paddingRight'), 10)
@@ -268,22 +268,24 @@ const FilmStrip = {
268 268
     },
269 269
 
270 270
     /**
271
-     *
272
-     * Calculates width of all panels inside filmstrip
273
-     * @returns {number} width
271
+     * Traverse all elements inside the filmstrip
272
+     * and calculates the sum of all of them except
273
+     * remote videos element. Used for calculation of
274
+     * available width for video thumbnails
275
+     * @returns {number} calculated width
276
+     * @private
274 277
      */
275
-    getFilmstripPanelsWidth() {
276
-        let filmstripPanelsWidth = 0;
278
+    _getFilmstripWidthExceptThumbnails() {
277 279
         let className = this.filmStripContainerClassName;
280
+        let width = 0;
278 281
         $(`.${className}`)
279 282
             .children()
280 283
             .each(function () {
281 284
                 if (this.id !== 'remoteVideos') {
282
-                    filmstripPanelsWidth += $(this).outerWidth();
285
+                    width += $(this).outerWidth();
283 286
                 }
284 287
             });
285
-
286
-        return filmstripPanelsWidth;
288
+        return width;
287 289
     },
288 290
 
289 291
     /**

Loading…
Cancel
Save