Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(custom-panel): refresh videoSpaceWidth when the panel toggles open/closed
Hristo Terezovd688cfe56621
diff --git a/react/features/custom-panel/subscriber.web.ts b/react/features/custom-panel/subscriber.web.tsindex 828a5f60d1..60bcd584de 100644--- a/react/features/custom-panel/subscriber.web.ts+++ b/react/features/custom-panel/subscriber.web.ts@@ -7,6 +7,21 @@ import { setCustomPanelWidth } from './actions.web';import { DEFAULT_CUSTOM_PANEL_WIDTH } from './constants';import { getCustomPanelMaxSize } from './functions';+/**+ * Listens for changes in the custom panel open state to recompute available+ * video space width. Without this, opening or closing the panel does not+ * refresh `videoSpaceWidth`, so tile dimensions stay sized for the previous+ * layout until something else triggers a recalculation. Mirrors the pattern+ * used by chat and the participants pane.+ */+StateListenerRegistry.register(+ /* selector */ state => state['features/custom-panel'].isOpen,+ /* listener */ (_isOpen, store) => {+ const { innerWidth, innerHeight } = window;++ store.dispatch(clientResized(innerWidth, innerHeight));+ });+interface IListenerState {clientWidth: number;isOpen: boolean;