Merge pull request #532 from damencho/resize-ds-onfilm-toggle

Resizes large video on filmstrip toggle.
This commit is contained in:
yanas 2016-03-16 14:46:32 -05:00
commit 6a7919a904
3 changed files with 10 additions and 6 deletions

View File

@ -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);
});
}
/**

View File

@ -93,7 +93,7 @@ function toggle (object, selector, onOpenComplete,
function resizeVideoArea(isSidePanelVisible, completeFunction) {
VideoLayout.resizeVideoArea(!isSidePanelVisible,
false,
true,
false,
completeFunction);
}

View File

@ -798,7 +798,8 @@ 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,
*/
resizeVideoArea (isSideBarVisible,
forceUpdate = false,
animate = false,
completeFunction = null) {