Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(large-video): vertically align center screenshare
Leonard Kima9d76a2577de
diff --git a/modules/UI/videolayout/VideoContainer.js b/modules/UI/videolayout/VideoContainer.jsindex 69dc65b5d2..31853eeec5 100644--- a/modules/UI/videolayout/VideoContainer.js+++ b/modules/UI/videolayout/VideoContainer.js@@ -166,22 +166,6 @@ function getCameraVideoPosition( // eslint-disable-line max-paramsverticalIndent };}-/**- * Returns an array of the video horizontal and vertical indents.- * Centers horizontally and top aligns vertically.- *- * @return an array with 2 elements, the horizontal indent and the vertical- * indent- */-function getDesktopVideoPosition(videoWidth, videoHeight, videoSpaceWidth) {- const horizontalIndent = (videoSpaceWidth - videoWidth) / 2;-- const verticalIndent = 0;// Top aligned-- return { horizontalIndent,- verticalIndent };-}-/*** Container for user video.*/@@ -366,23 +350,23 @@ export class VideoContainer extends LargeContainer {* @returns {{horizontalIndent, verticalIndent}}*/getVideoPosition(width, height, containerWidth, containerHeight) {+ let containerWidthToUse = containerWidth;+/* eslint-enable max-params */if (this.stream && this.isScreenSharing()) {- let availableContainerWidth = containerWidth;-if (interfaceConfig.VERTICAL_FILMSTRIP) {- availableContainerWidth -= Filmstrip.getFilmstripWidth();+ containerWidthToUse -= Filmstrip.getFilmstripWidth();}- return getDesktopVideoPosition(width,+ return getCameraVideoPosition(width,height,- availableContainerWidth,+ containerWidthToUse,containerHeight);}return getCameraVideoPosition(width,height,- containerWidth,+ containerWidthToUse,containerHeight);}