fix minimize presentation focus on presentation layout

This commit is contained in:
Ramón Souza 2021-11-12 17:08:31 +00:00
parent 314f35c44e
commit 9ee4975e7f

View File

@ -479,6 +479,8 @@ class PresentationFocusLayout extends Component {
calculatesLayout() { calculatesLayout() {
const { layoutContextState, layoutContextDispatch } = this.props; const { layoutContextState, layoutContextDispatch } = this.props;
const { deviceType, input, isRTL } = layoutContextState; const { deviceType, input, isRTL } = layoutContextState;
const { presentation } = input;
const { isOpen } = presentation;
const { captionsMargin } = DEFAULT_VALUES; const { captionsMargin } = DEFAULT_VALUES;
const sidebarNavWidth = this.calculatesSidebarNavWidth(); const sidebarNavWidth = this.calculatesSidebarNavWidth();
@ -654,7 +656,7 @@ class PresentationFocusLayout extends Component {
type: ACTIONS.SET_SCREEN_SHARE_OUTPUT, type: ACTIONS.SET_SCREEN_SHARE_OUTPUT,
value: { value: {
width: mediaBounds.width, width: mediaBounds.width,
height: mediaBounds.height, height: isOpen ? mediaBounds.height : 0,
top: mediaBounds.top, top: mediaBounds.top,
left: mediaBounds.left, left: mediaBounds.left,
right: mediaBounds.right, right: mediaBounds.right,
@ -666,7 +668,7 @@ class PresentationFocusLayout extends Component {
type: ACTIONS.SET_EXTERNAL_VIDEO_OUTPUT, type: ACTIONS.SET_EXTERNAL_VIDEO_OUTPUT,
value: { value: {
width: mediaBounds.width, width: mediaBounds.width,
height: mediaBounds.height, height: isOpen ? mediaBounds.height : 0,
top: mediaBounds.top, top: mediaBounds.top,
left: mediaBounds.left, left: mediaBounds.left,
right: mediaBounds.right, right: mediaBounds.right,