mirror of https://github.com/vector-im/riot-web
Merge pull request #5690 from matrix-org/dbkr/call_maxheight_nan
Null check for maxHeight in call viewpull/21833/head
commit
11ba9e0601
|
@ -518,7 +518,7 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
}
|
||||
|
||||
// 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 = <div className={containerClasses}
|
||||
|
|
Loading…
Reference in New Issue