Skip to content

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

Resizes large video on filmstrip toggle.

damencho97733cd17ae6
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index e68113ff28..60c4532001 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -276,7 +276,10 @@ function registerListeners() {
UI.addListener(UIEvents.TOGGLE_CONTACT_LIST, UI.toggleContactList);
- UI.addListener(UIEvents.TOGGLE_FILM_STRIP, UI.toggleFilmStrip);
+ UI.addListener(UIEvents.TOGGLE_FILM_STRIP, function () {
+ UI.toggleFilmStrip();
+ VideoLayout.resizeVideoArea(PanelToggler.isVisible(), true, true);
+ });
}
/**
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 730a55dc3e..a671c67b6b 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -804,10 +804,11 @@ var VideoLayout = {
* @param forceUpdate indicates that hidden thumbnails will be shown
* @param completeFunction a function to be called when the video area is
* resized.
- */resizeVideoArea (isSideBarVisible,
- forceUpdate = false,
- animate = false,
- completeFunction = null) {
+ */
+ resizeVideoArea (isSideBarVisible,
+ forceUpdate = false,
+ animate = false,
+ completeFunction = null) {
if (largeVideo) {
largeVideo.updateContainerSize(isSideBarVisible);