You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Null check for maxHeight in call view
This commit is contained in:
@@ -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.
|
// 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)
|
this.props.maxVideoHeight - (HEADER_HEIGHT + BOTTOM_PADDING + BOTTOM_MARGIN_TOP_BOTTOM)
|
||||||
);
|
);
|
||||||
contentView = <div className={containerClasses}
|
contentView = <div className={containerClasses}
|
||||||
|
|||||||
Reference in New Issue
Block a user