From ef0505be5c3e21f3b82e09ee6ca56b95c83a8022 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Tue, 15 Apr 2014 11:58:43 +0200 Subject: [PATCH] No longer set height of container making the own video always flow to the bottom. --- static/js/directives/audiovideo.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/static/js/directives/audiovideo.js b/static/js/directives/audiovideo.js index 2c84ceb8..9e59823e 100644 --- a/static/js/directives/audiovideo.js +++ b/static/js/directives/audiovideo.js @@ -294,7 +294,6 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ var newVideoWidth = innerWidth < aspectRatio * innerHeight ? innerWidth : aspectRatio * innerHeight; var newVideoHeight = innerHeight < innerWidth / aspectRatio ? innerHeight : innerWidth / aspectRatio; container.style.width = newVideoWidth + 'px'; - container.style.height = newVideoHeight + 'px'; container.style.left = ((innerWidth - newVideoWidth) / 2) + 'px'; var extraCSS = {}; } else { @@ -310,7 +309,6 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ var tooHigh = (newContainerHeight-innerHeight) / Math.ceil(videos.length / videosPerRow); singleVideoHeight -= tooHigh; singleVideoWidth = singleVideoHeight * aspectRatio; - newContainerHeight = innerHeight; } /* console.log("space", space); @@ -321,7 +319,6 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ console.log("singleVideoHeight", singleVideoHeight); */ container.style.width = newContainerWidth + "px"; - container.style.height = newContainerHeight + "px"; container.style.left = ((innerWidth - newContainerWidth) / 2) + 'px'; extraCSS = { "#remoteVideos": {