Merge pull request #532 from damencho/resize-ds-onfilm-toggle
Resizes large video on filmstrip toggle.
This commit is contained in:
commit
6a7919a904
|
@ -270,7 +270,10 @@ function registerListeners() {
|
||||||
|
|
||||||
UI.addListener(UIEvents.TOGGLE_CONTACT_LIST, UI.toggleContactList);
|
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);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -93,7 +93,7 @@ function toggle (object, selector, onOpenComplete,
|
||||||
function resizeVideoArea(isSidePanelVisible, completeFunction) {
|
function resizeVideoArea(isSidePanelVisible, completeFunction) {
|
||||||
VideoLayout.resizeVideoArea(!isSidePanelVisible,
|
VideoLayout.resizeVideoArea(!isSidePanelVisible,
|
||||||
false,
|
false,
|
||||||
true,
|
false,
|
||||||
completeFunction);
|
completeFunction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -798,10 +798,11 @@ var VideoLayout = {
|
||||||
* @param forceUpdate indicates that hidden thumbnails will be shown
|
* @param forceUpdate indicates that hidden thumbnails will be shown
|
||||||
* @param completeFunction a function to be called when the video area is
|
* @param completeFunction a function to be called when the video area is
|
||||||
* resized.
|
* resized.
|
||||||
*/resizeVideoArea (isSideBarVisible,
|
*/
|
||||||
forceUpdate = false,
|
resizeVideoArea (isSideBarVisible,
|
||||||
animate = false,
|
forceUpdate = false,
|
||||||
completeFunction = null) {
|
animate = false,
|
||||||
|
completeFunction = null) {
|
||||||
|
|
||||||
if (largeVideo) {
|
if (largeVideo) {
|
||||||
largeVideo.updateContainerSize(isSideBarVisible);
|
largeVideo.updateContainerSize(isSideBarVisible);
|
||||||
|
|
Loading…
Reference in New Issue