diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 5aef40308..3dd349140 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -270,7 +270,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, false); + }); } /** diff --git a/modules/UI/side_pannels/SidePanelToggler.js b/modules/UI/side_pannels/SidePanelToggler.js index 9336d65b1..8d4d6f47b 100644 --- a/modules/UI/side_pannels/SidePanelToggler.js +++ b/modules/UI/side_pannels/SidePanelToggler.js @@ -93,7 +93,7 @@ function toggle (object, selector, onOpenComplete, function resizeVideoArea(isSidePanelVisible, completeFunction) { VideoLayout.resizeVideoArea(!isSidePanelVisible, false, - true, + false, completeFunction); } diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index e1550503e..1dd96d20e 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -798,10 +798,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);