From b58ce4ccfc6b74be7fe3dacb5affde9ce23d86c9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 26 Feb 2021 14:00:02 +0000 Subject: [PATCH] Null check for maxHeight in call view --- src/components/views/voip/CallView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 467196a68a..7cac682794 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -518,7 +518,7 @@ export default class CallView extends React.Component { } // if we're fullscreen, we don't want to set a maxHeight on the video element. - const maxVideoHeight = getFullScreenElement() ? null : ( + const maxVideoHeight = getFullScreenElement() || !this.props.maxVideoHeight ? null : ( this.props.maxVideoHeight - (HEADER_HEIGHT + BOTTOM_PADDING + BOTTOM_MARGIN_TOP_BOTTOM) ); contentView =