Fixes the calculation of the video count when lastN is enabled.
This commit is contained in:
parent
e938f144b0
commit
0856443a6b
|
@ -910,11 +910,10 @@ var VideoLayout = (function (my) {
|
||||||
// container used for highlighting shadow.
|
// container used for highlighting shadow.
|
||||||
var availableHeight = 100;
|
var availableHeight = 100;
|
||||||
|
|
||||||
var numvids = 0;
|
var numvids = $('#remoteVideos>span:visible').length;
|
||||||
if (lastNCount && lastNCount > 0)
|
if (lastNCount && lastNCount > 0) {
|
||||||
numvids = lastNCount + 1;
|
numvids = Math.min(lastNCount + 1, numvids);
|
||||||
else
|
}
|
||||||
numvids = $('#remoteVideos>span:visible').length;
|
|
||||||
|
|
||||||
// Remove the 3px borders arround videos and border around the remote
|
// Remove the 3px borders arround videos and border around the remote
|
||||||
// videos area and the 4 pixels between the local video and the others
|
// videos area and the 4 pixels between the local video and the others
|
||||||
|
|
Loading…
Reference in New Issue