Преглед изворни кода

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 година
родитељ
комит
7a9a6855b7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      modules/UI/videolayout/LargeVideoManager.js

+ 1
- 1
modules/UI/videolayout/LargeVideoManager.js Прегледај датотеку

@@ -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…
Откажи
Сачувај