diff --git a/modules/UI/videolayout/LargeVideoManager.js b/modules/UI/videolayout/LargeVideoManager.js index c2629b4d1..7b1e8c892 100644 --- a/modules/UI/videolayout/LargeVideoManager.js +++ b/modules/UI/videolayout/LargeVideoManager.js @@ -356,17 +356,12 @@ export default class LargeVideoManager { let widthToUse = this.preferredWidth || window.innerWidth; const { isOpen } = APP.store.getState()['features/chat']; - /** - * If chat state is open, we re-compute the container width by subtracting the default width of - * 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 && !this.resizedForChat) { + if (isOpen) { + /** + * If chat state is open, we re-compute the container width + * by subtracting the default width of the chat. + */ widthToUse -= CHAT_SIZE; - this.resizedForChat = true; - } else if (this.resizedForChat) { - this.resizedForChat = false; - widthToUse += CHAT_SIZE; } this.width = widthToUse;