From 7a9a6855b75a4a00ac970aff58a8c014253165b2 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Tue, 22 Sep 2020 17:14:15 -0400 Subject: [PATCH] fix(UI): Re-compute large-video width only once if the chat window is open. Deduct the chat window width from large-video width only once if we keep toggling between stage view and grid view while the chat window is open. --- modules/UI/videolayout/LargeVideoManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/UI/videolayout/LargeVideoManager.js b/modules/UI/videolayout/LargeVideoManager.js index 271cd6994..8b51a5ff9 100644 --- a/modules/UI/videolayout/LargeVideoManager.js +++ b/modules/UI/videolayout/LargeVideoManager.js @@ -331,7 +331,7 @@ export default class LargeVideoManager { * the chat. We re-compute the width again after the chat window is closed. This is needed when * custom styling is configured on the large video container through the iFrame API. */ - if (isOpen) { + if (isOpen && !this.resizedForChat) { widthToUse -= CHAT_SIZE; this.resizedForChat = true; } else if (this.resizedForChat) {