Changes calculations for the thumbnail size to avoid the appearance of a second row.

This commit is contained in:
fo 2014-09-30 17:41:47 +03:00
parent 380b1de723
commit 30603a0462
1 changed files with 3 additions and 2 deletions

View File

@ -919,8 +919,9 @@ var VideoLayout = (function (my) {
numvids = $('#remoteVideos>span:visible').length;
// Remove the 3px borders arround videos and border around the remote
// videos area
var availableWinWidth = videoSpaceWidth - 2 * 3 * numvids - 70;
// videos area and the 4 pixels between the local video and the others
//TODO: Find out where the 4 pixels come from and remove them
var availableWinWidth = videoSpaceWidth - 2 * 3 * numvids - 70 - 4;
var availableWidth = availableWinWidth / numvids;
var aspectRatio = 16.0 / 9.0;