Skip to content

Commit 60a4f0c

Browse files
committed
1 - Adjust jitsi popup up position
1 parent d987f99 commit 60a4f0c

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

core/modules/meet/client/meet.js

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,25 @@ const onZoneEntered = e => {
2525
const meetingRoomService = jitsiLowLevel ? meetLowLevel : meetHighLevel;
2626
meetingRoom.setMeetingRoomService(meetingRoomService);
2727

28-
const containerId = '.resizableMeet';
29-
const resizable = document.querySelector(containerId);
30-
const cornerResizers = document.querySelectorAll(`${containerId} .corner-resizer`);
31-
const widthResizers = document.querySelector(`${containerId} .width-resizers`);
32-
33-
resizable.style.top = '0%';
34-
resizable.style.left = '25%';
35-
resizable.style.height = '50%';
36-
resizable.style.width = '50%';
37-
cornerResizers.forEach(resizer => resizer.classList.add('show'));
38-
widthResizers.classList.remove('show');
39-
40-
Session.set('screenMode', 'unlocked');
41-
Session.set('screenSide', 'right');
42-
43-
updateViewport(game.scene.keys.WorldScene);
44-
updateViewport(game.scene.keys.UIScene);
28+
if (roomName && roomName !== '') {
29+
const containerId = '.resizableMeet';
30+
const resizable = document.querySelector(containerId);
31+
const cornerResizers = document.querySelectorAll(`${containerId} .corner-resizer`);
32+
const widthResizers = document.querySelector(`${containerId} .width-resizers`);
33+
34+
resizable.style.top = '0%';
35+
resizable.style.left = '25%';
36+
resizable.style.height = '40%';
37+
resizable.style.width = '50%';
38+
cornerResizers.forEach(resizer => resizer.classList.add('show'));
39+
widthResizers.classList.remove('show');
40+
41+
Session.set('screenMode', 'unlocked');
42+
Session.set('screenSide', 'right');
43+
44+
updateViewport(game.scene.keys.WorldScene);
45+
updateViewport(game.scene.keys.UIScene);
46+
}
4547

4648
if (!meetingRoomService.api && roomName) {
4749
const user = Meteor.user();

0 commit comments

Comments
 (0)