Fixes broken large video resize functionality.
This commit is contained in:
parent
2fb65dd752
commit
4cf1f92e25
|
@ -57,7 +57,7 @@ function getDesktopVideoSize(videoWidth,
|
|||
availableHeight = availableWidth / aspectRatio;
|
||||
}
|
||||
|
||||
return { availableWidth, availableHeight };
|
||||
return [ availableWidth, availableHeight ];
|
||||
}
|
||||
|
||||
|
||||
|
@ -106,7 +106,7 @@ function getCameraVideoSize(videoWidth,
|
|||
}
|
||||
|
||||
|
||||
return { availableWidth, availableHeight };
|
||||
return [ availableWidth, availableHeight ];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -239,7 +239,7 @@ class VideoContainer extends LargeContainer {
|
|||
}
|
||||
|
||||
resize (containerWidth, containerHeight, animate = false) {
|
||||
let { width, height }
|
||||
let [width, height]
|
||||
= this.getVideoSize(containerWidth, containerHeight);
|
||||
let { horizontalIndent, verticalIndent }
|
||||
= this.getVideoPosition(width, height,
|
||||
|
@ -251,8 +251,8 @@ class VideoContainer extends LargeContainer {
|
|||
this.$avatar.css('top', top);
|
||||
|
||||
this.$wrapper.animate({
|
||||
width,
|
||||
height,
|
||||
width: width,
|
||||
height: height,
|
||||
|
||||
top: verticalIndent,
|
||||
bottom: verticalIndent,
|
||||
|
|
Loading…
Reference in New Issue