Browse Source

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.
master
Jaya Allamsetty 5 years ago
parent
commit
7a9a6855b7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/UI/videolayout/LargeVideoManager.js

+ 1
- 1
modules/UI/videolayout/LargeVideoManager.js View File

@@ -331,7 +331,7 @@ export default class LargeVideoManager {
331 331
          * the chat. We re-compute the width again after the chat window is closed. This is needed when
332 332
          * custom styling is configured on the large video container through the iFrame API.
333 333
          */
334
-        if (isOpen) {
334
+        if (isOpen && !this.resizedForChat) {
335 335
             widthToUse -= CHAT_SIZE;
336 336
             this.resizedForChat = true;
337 337
         } else if (this.resizedForChat) {

Loading…
Cancel
Save