|
@@ -356,17 +356,12 @@ export default class LargeVideoManager {
|
356
|
356
|
let widthToUse = this.preferredWidth || window.innerWidth;
|
357
|
357
|
const { isOpen } = APP.store.getState()['features/chat'];
|
358
|
358
|
|
359
|
|
- /**
|
360
|
|
- * If chat state is open, we re-compute the container width by subtracting the default width of
|
361
|
|
- * the chat. We re-compute the width again after the chat window is closed. This is needed when
|
362
|
|
- * custom styling is configured on the large video container through the iFrame API.
|
363
|
|
- */
|
364
|
|
- if (isOpen && !this.resizedForChat) {
|
|
359
|
+ if (isOpen) {
|
|
360
|
+ /**
|
|
361
|
+ * If chat state is open, we re-compute the container width
|
|
362
|
+ * by subtracting the default width of the chat.
|
|
363
|
+ */
|
365
|
364
|
widthToUse -= CHAT_SIZE;
|
366
|
|
- this.resizedForChat = true;
|
367
|
|
- } else if (this.resizedForChat) {
|
368
|
|
- this.resizedForChat = false;
|
369
|
|
- widthToUse += CHAT_SIZE;
|
370
|
365
|
}
|
371
|
366
|
|
372
|
367
|
this.width = widthToUse;
|