@@ -40,9 +40,6 @@ interface IProps {
4040 // Another ongoing call to display information about
4141 secondaryCall ?: MatrixCall ,
4242
43- // maxHeight style attribute for the video panel
44- maxVideoHeight ?: number ;
45-
4643 // a callback which is called when the content in the callview changes
4744 // in a way that is likely to cause a resize.
4845 onResize ?: any ;
@@ -96,9 +93,6 @@ function exitFullscreen() {
9693const CONTROLS_HIDE_DELAY = 1000 ;
9794// Height of the header duplicated from CSS because we need to subtract it from our max
9895// height to get the max height of the video
99- const HEADER_HEIGHT = 44 ;
100- const BOTTOM_PADDING = 10 ;
101- const BOTTOM_MARGIN_TOP_BOTTOM = 10 ; // top margin plus bottom margin
10296const CONTEXT_MENU_VPADDING = 8 ; // How far the context menu sits above the button (px)
10397
10498@replaceableComponent ( "views.voip.CallView" )
@@ -548,20 +542,9 @@ export default class CallView extends React.Component<IProps, IState> {
548542 localVideoFeed = < VideoFeed type = { VideoFeedType . Local } call = { this . props . call } /> ;
549543 }
550544
551- // if we're fullscreen, we don't want to set a maxHeight on the video element.
552- const maxVideoHeight = getFullScreenElement ( ) || ! this . props . maxVideoHeight ? null : (
553- this . props . maxVideoHeight - ( HEADER_HEIGHT + BOTTOM_PADDING + BOTTOM_MARGIN_TOP_BOTTOM )
554- ) ;
555- contentView = < div className = { containerClasses }
556- ref = { this . contentRef } onMouseMove = { this . onMouseMove }
557- // Put the max height on here too because this div is ended up 4px larger than the content
558- // and is causing it to scroll, and I am genuinely baffled as to why.
559- style = { { maxHeight : maxVideoHeight } }
560- >
545+ contentView = < div className = { containerClasses } ref = { this . contentRef } onMouseMove = { this . onMouseMove } >
561546 { onHoldBackground }
562- < VideoFeed type = { VideoFeedType . Remote } call = { this . props . call } onResize = { this . props . onResize }
563- maxHeight = { maxVideoHeight }
564- />
547+ < VideoFeed type = { VideoFeedType . Remote } call = { this . props . call } onResize = { this . props . onResize } />
565548 { localVideoFeed }
566549 { holdTransferContent }
567550 { callControls }
0 commit comments