소스 검색

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
          * the chat. We re-compute the width again after the chat window is closed. This is needed when
331
          * the chat. We re-compute the width again after the chat window is closed. This is needed when
332
          * custom styling is configured on the large video container through the iFrame API.
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
             widthToUse -= CHAT_SIZE;
335
             widthToUse -= CHAT_SIZE;
336
             this.resizedForChat = true;
336
             this.resizedForChat = true;
337
         } else if (this.resizedForChat) {
337
         } else if (this.resizedForChat) {

Loading…
취소
저장