fix(layout): hide/show media in videoFocus

Fix an error that the hide/show button does not work when there is external
video/screenshare and the layout is "videoFocus".
This commit is contained in:
Max 2022-01-17 19:11:43 -03:00
parent a0312348cb
commit 38d95b0ea8

View File

@ -477,6 +477,11 @@ class VideoFocusLayout extends Component {
mediaBounds.top = sidebarContentHeight + this.bannerAreaHeight();
mediaBounds.width = sidebarContentWidth;
mediaBounds.zIndex = 1;
} else if (!input.presentation.isOpen) {
mediaBounds.width = 0;
mediaBounds.height = 0;
mediaBounds.top = 0;
mediaBounds.left = 0;
} else {
mediaBounds.height = mediaAreaBounds.height;
mediaBounds.width = mediaAreaBounds.width;