Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(tile-view, rn) Fix landscape mode tile view

robertpin59ee984e097b
diff --git a/react/features/filmstrip/actions.native.js b/react/features/filmstrip/actions.native.js
index f18be37b24..c5a151540c 100644
--- a/react/features/filmstrip/actions.native.js
+++ b/react/features/filmstrip/actions.native.js
@@ -26,13 +26,13 @@ export function setTileViewDimensions() {
const columns = getColumnCount(state);
const rows = Math.ceil(participantCount / columns);
const conferenceBorder = conferenceStyles.conference.borderWidth || 0;
- const heightToUse = height - top - (2 * conferenceBorder);
+ const heightToUse = height - top - bottom - (2 * conferenceBorder);
const widthToUse = width - (TILE_MARGIN * 2) - left - right - (2 * conferenceBorder);
let tileWidth;
// If there is going to be at least two rows, ensure that at least two
// rows display fully on screen.
- if (rows / columns > 1) {
+ if (participantCount / columns > 1) {
tileWidth = Math.min(widthToUse / columns, heightToUse / 2);
} else {
tileWidth = Math.min(widthToUse / columns, heightToUse);