Compare commits

...

1 Commits

Author SHA1 Message Date
Jaya Allamsetty
68a75380a4 fix(UI): Re-compute large-video width only once if the chat window is open. (#7758)
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.
2020-09-22 17:10:27 -04:00

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
* 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) {