diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index c534a87d47..3a5dfcf068 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -86,6 +86,9 @@ function exitFullscreen() { } const CONTROLS_HIDE_DELAY = 1000; +// Height of the header duplicated from CSS because we need to subtract it from our max +// height to get the max height of the video +const HEADER_HEIGHT = 44; export default class CallView extends React.Component { private dispatcherRef: string; @@ -361,7 +364,7 @@ export default class CallView extends React.Component { if (this.state.call.type === CallType.Video) { // if we're fullscreen, we don't want to set a maxHeight on the video element. - const maxVideoHeight = getFullScreenElement() ? null : this.props.maxVideoHeight; + const maxVideoHeight = getFullScreenElement() ? null : this.props.maxVideoHeight - HEADER_HEIGHT; contentView =