fix(UI): Do not re-compute the container width when chat window is closed.
Since the external API now sets preferredWidth/preferredHeight for resizing the large video, we don't need to add chat width to the computed window width when the chat window is closed. Fixes https://github.com/jitsi/jitsi-meet/issues/7889
This commit is contained in:
parent
35e8821679
commit
223187c640
|
@ -356,17 +356,12 @@ export default class LargeVideoManager {
|
||||||
let widthToUse = this.preferredWidth || window.innerWidth;
|
let widthToUse = this.preferredWidth || window.innerWidth;
|
||||||
const { isOpen } = APP.store.getState()['features/chat'];
|
const { isOpen } = APP.store.getState()['features/chat'];
|
||||||
|
|
||||||
/**
|
if (isOpen) {
|
||||||
* 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
|
* If chat state is open, we re-compute the container width
|
||||||
* custom styling is configured on the large video container through the iFrame API.
|
* by subtracting the default width of the chat.
|
||||||
*/
|
*/
|
||||||
if (isOpen && !this.resizedForChat) {
|
|
||||||
widthToUse -= CHAT_SIZE;
|
widthToUse -= CHAT_SIZE;
|
||||||
this.resizedForChat = true;
|
|
||||||
} else if (this.resizedForChat) {
|
|
||||||
this.resizedForChat = false;
|
|
||||||
widthToUse += CHAT_SIZE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.width = widthToUse;
|
this.width = widthToUse;
|
||||||
|
|
Loading…
Reference in New Issue