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
ref(layout): use css to make video layout containers fit window
Leonard Kim12d7ab90265b
diff --git a/css/_videolayout_default.scss b/css/_videolayout_default.scssindex 4c64354972..dcf2de5003 100644--- a/css/_videolayout_default.scss+++ b/css/_videolayout_default.scss@@ -4,6 +4,8 @@#videospace {display: block;+ height: 100%;+ width: 100%;min-height: 100%;position: absolute;top: 0px;@@ -224,6 +226,11 @@text-align: center;}+#largeVideoContainer {+ height: 100%;+ width: 100%;+}+#largeVideoWrapper {box-shadow: 0 0 20px -2px #444;}diff --git a/modules/UI/videolayout/LargeVideoManager.js b/modules/UI/videolayout/LargeVideoManager.jsindex 6d7ef3d62f..62ca70dce1 100644--- a/modules/UI/videolayout/LargeVideoManager.js+++ b/modules/UI/videolayout/LargeVideoManager.js@@ -399,14 +399,6 @@ export default class LargeVideoManager {// resize all containersObject.keys(this.containers).forEach(type => this.resizeContainer(type, animate));-- this.$container.animate({- width: this.width,- height: this.height- }, {- queue: false,- duration: animate ? 500 : 0- });}/**diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex 448c0a7bd8..ec20ed600e 100644--- a/modules/UI/videolayout/VideoLayout.js+++ b/modules/UI/videolayout/VideoLayout.js@@ -857,13 +857,10 @@ const VideoLayout = {* TODO: Remove the "animate" param as it is no longer passed in as true.** @param forceUpdate indicates that hidden thumbnails will be shown- * @param completeFunction a function to be called when the video area is- * resized.*/resizeVideoArea(forceUpdate = false,- animate = false,- completeFunction = null) {+ animate = false) {if (largeVideo) {largeVideo.updateContainerSize();largeVideo.resize(animate);@@ -879,17 +876,6 @@ const VideoLayout = {// Resize the thumbnails first.this.resizeThumbnails(forceUpdate);-- // Resize the video area element.- $('#videospace').animate({- right: window.innerWidth - availableWidth,- width: availableWidth,- height: availableHeight- }, {- queue: false,- duration: animate ? 500 : 1,- complete: completeFunction- });},getSmallVideo(id) {