fix(participants-pane): Resize video layout when closing or opening

This commit is contained in:
Gabriel Imre 2021-05-07 10:02:50 +03:00 committed by vp8x8
parent dec90bdeb8
commit edff9bef53
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import {
import { MiddlewareRegistry } from '../base/redux';
import { TRACK_ADDED, TRACK_REMOVED, TRACK_STOPPED } from '../base/tracks';
import { SET_FILMSTRIP_VISIBLE } from '../filmstrip';
import { PARTICIPANTS_PANE_CLOSE, PARTICIPANTS_PANE_OPEN } from '../participants-pane/actionTypes.js';
import './middleware.any';
@ -53,6 +54,8 @@ MiddlewareRegistry.register(store => next => action => {
break;
}
case PARTICIPANTS_PANE_CLOSE:
case PARTICIPANTS_PANE_OPEN:
case SET_FILMSTRIP_VISIBLE:
VideoLayout.resizeVideoArea();
break;