Fix 0 presenter case
This commit is contained in:
parent
d57d9e9af0
commit
00f0f63ca6
1 changed files with 4 additions and 5 deletions
|
@ -50,10 +50,6 @@ function getTilePositions(
|
||||||
console.warn("Over 12 tiles is not currently supported");
|
console.warn("Over 12 tiles is not currently supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (presenterTileCount > 3) {
|
|
||||||
console.warn("Over 3 presenters is not currently supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
const gap = 8;
|
const gap = 8;
|
||||||
|
|
||||||
const { layoutDirection, participantGridRatio } = getGridLayout(
|
const { layoutDirection, participantGridRatio } = getGridLayout(
|
||||||
|
@ -83,7 +79,10 @@ function getTilePositions(
|
||||||
|
|
||||||
let presenterGridWidth, presenterGridHeight;
|
let presenterGridWidth, presenterGridHeight;
|
||||||
|
|
||||||
if (layoutDirection === "vertical") {
|
if (presenterTileCount === 0) {
|
||||||
|
presenterGridWidth = 0;
|
||||||
|
presenterGridHeight = 0;
|
||||||
|
} else if (layoutDirection === "vertical") {
|
||||||
presenterGridWidth = gridWidth;
|
presenterGridWidth = gridWidth;
|
||||||
presenterGridHeight = gridHeight - (participantGridBounds.height + gap * 2);
|
presenterGridHeight = gridHeight - (participantGridBounds.height + gap * 2);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue