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.
This commit is contained in:
Jaya Allamsetty 2020-09-22 17:14:15 -04:00 committed by Jaya Allamsetty
parent 8dcf04897a
commit 7a9a6855b7
1 changed files with 1 additions and 1 deletions

View File

@ -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 * 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. * custom styling is configured on the large video container through the iFrame API.
*/ */
if (isOpen) { if (isOpen && !this.resizedForChat) {
widthToUse -= CHAT_SIZE; widthToUse -= CHAT_SIZE;
this.resizedForChat = true; this.resizedForChat = true;
} else if (this.resizedForChat) { } else if (this.resizedForChat) {