Fix problem with resizing
This commit is contained in:
parent
e2c5439112
commit
aea99b8ffb
|
@ -332,6 +332,14 @@ UI.mucJoined = function () {
|
||||||
VideoLayout.mucJoined();
|
VideoLayout.mucJoined();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/***
|
||||||
|
* Handler for toggling filmstrip
|
||||||
|
*/
|
||||||
|
UI.handleToggleFilmStrip = () => {
|
||||||
|
UI.toggleFilmStrip();
|
||||||
|
VideoLayout.resizeVideoArea(PanelToggler.isVisible(), true, false);
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup some UI event listeners.
|
* Setup some UI event listeners.
|
||||||
*/
|
*/
|
||||||
|
@ -359,10 +367,7 @@ function registerListeners() {
|
||||||
|
|
||||||
UI.addListener(UIEvents.TOGGLE_CONTACT_LIST, UI.toggleContactList);
|
UI.addListener(UIEvents.TOGGLE_CONTACT_LIST, UI.toggleContactList);
|
||||||
|
|
||||||
UI.addListener(UIEvents.TOGGLE_FILM_STRIP, function () {
|
UI.addListener(UIEvents.TOGGLE_FILM_STRIP, UI.handleToggleFilmStrip);
|
||||||
UI.toggleFilmStrip();
|
|
||||||
VideoLayout.resizeVideoArea(PanelToggler.isVisible(), true, false);
|
|
||||||
});
|
|
||||||
|
|
||||||
UI.addListener(UIEvents.FOLLOW_ME_ENABLED, function (isEnabled) {
|
UI.addListener(UIEvents.FOLLOW_ME_ENABLED, function (isEnabled) {
|
||||||
if (followMeHandler)
|
if (followMeHandler)
|
||||||
|
@ -516,7 +521,6 @@ UI.start = function () {
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show local stream on UI.
|
* Show local stream on UI.
|
||||||
* @param {JitsiTrack} track stream to show
|
* @param {JitsiTrack} track stream to show
|
||||||
|
|
|
@ -15,7 +15,7 @@ const defaultBottomToolbarButtons = {
|
||||||
shortcutAttr: "filmstripPopover",
|
shortcutAttr: "filmstripPopover",
|
||||||
shortcutFunc: function() {
|
shortcutFunc: function() {
|
||||||
JitsiMeetJS.analytics.sendEvent("shortcut.film.toggled");
|
JitsiMeetJS.analytics.sendEvent("shortcut.film.toggled");
|
||||||
APP.UI.toggleFilmStrip();
|
APP.UI.handleToggleFilmStrip();
|
||||||
},
|
},
|
||||||
shortcutDescription: "keyboardShortcuts.toggleFilmstrip"
|
shortcutDescription: "keyboardShortcuts.toggleFilmstrip"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue