From 60a4f0ce3d5d324f8436629439d19d6f09855222 Mon Sep 17 00:00:00 2001 From: Nicolas PILLON Date: Tue, 12 Sep 2023 08:13:47 +0200 Subject: [PATCH] 1 - Adjust jitsi popup up position --- core/modules/meet/client/meet.js | 36 +++++++++++++++++--------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/core/modules/meet/client/meet.js b/core/modules/meet/client/meet.js index 61041812..ced5ee0e 100644 --- a/core/modules/meet/client/meet.js +++ b/core/modules/meet/client/meet.js @@ -25,23 +25,25 @@ const onZoneEntered = e => { const meetingRoomService = jitsiLowLevel ? meetLowLevel : meetHighLevel; meetingRoom.setMeetingRoomService(meetingRoomService); - const containerId = '.resizableMeet'; - const resizable = document.querySelector(containerId); - const cornerResizers = document.querySelectorAll(`${containerId} .corner-resizer`); - const widthResizers = document.querySelector(`${containerId} .width-resizers`); - - resizable.style.top = '0%'; - resizable.style.left = '25%'; - resizable.style.height = '50%'; - resizable.style.width = '50%'; - cornerResizers.forEach(resizer => resizer.classList.add('show')); - widthResizers.classList.remove('show'); - - Session.set('screenMode', 'unlocked'); - Session.set('screenSide', 'right'); - - updateViewport(game.scene.keys.WorldScene); - updateViewport(game.scene.keys.UIScene); + if (roomName && roomName !== '') { + const containerId = '.resizableMeet'; + const resizable = document.querySelector(containerId); + const cornerResizers = document.querySelectorAll(`${containerId} .corner-resizer`); + const widthResizers = document.querySelector(`${containerId} .width-resizers`); + + resizable.style.top = '0%'; + resizable.style.left = '25%'; + resizable.style.height = '40%'; + resizable.style.width = '50%'; + cornerResizers.forEach(resizer => resizer.classList.add('show')); + widthResizers.classList.remove('show'); + + Session.set('screenMode', 'unlocked'); + Session.set('screenSide', 'right'); + + updateViewport(game.scene.keys.WorldScene); + updateViewport(game.scene.keys.UIScene); + } if (!meetingRoomService.api && roomName) { const user = Meteor.user();