This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new 5333ccc [OPENMEETINGS-1849] AV start works if all WB tabs are closed
5333ccc is described below
commit 5333ccc59d5044a90d46f74fe857467df97c5049
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Mon Mar 12 20:23:42 2018 +0700
[OPENMEETINGS-1849] AV start works if all WB tabs are closed
---
.../main/java/org/apache/openmeetings/web/room/video-manager.js | 5 +----
.../src/main/java/org/apache/openmeetings/web/room/video-util.js | 9 +++++++--
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-manager.js
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-manager.js
index 35b616c..97fb1e7 100644
---
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-manager.js
+++
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-manager.js
@@ -106,9 +106,6 @@ var VideoManager = (function() {
}
function _init() {
- if ($(WB_AREA_SEL + ' .wb-area .tabs').length > 0) {
- WBA_SEL = WBA_WB_SEL;
- }
Wicket.Event.subscribe("/websocket/message", _onWsMessage);
VideoSettings.init(Room.getOptions());
share = $('.room.box').find('.icon.shared.ui-button');
@@ -176,7 +173,7 @@ var VideoManager = (function() {
share.tooltip().off('click').click(function() {
const v = $('#' + VideoUtil.getVid(c.uid))
if (v.length !== 1) {
- Video().init(c, $(WBA_SEL).offset());
+ Video().init(c,
VideoUtil.container().offset());
} else {
v.dialog('open');
}
diff --git
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-util.js
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-util.js
index f257e48..ea750b4 100644
---
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-util.js
+++
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/video-util.js
@@ -1,7 +1,6 @@
/* Licensed under the Apache License, Version 2.0 (the "License")
http://www.apache.org/licenses/LICENSE-2.0 */
const WB_AREA_SEL = '.room.wb.area';
const WBA_WB_SEL = '.room.wb.area
.ui-tabs-panel.ui-corner-bottom.ui-widget-content:visible';
-var WBA_SEL = WB_AREA_SEL;
const VID_SEL = '.video.user-video';
var VideoUtil = (function() {
const self = {};
@@ -38,11 +37,16 @@ var VideoUtil = (function() {
, right: winoff.left + win.width()
, bottom: winoff.top + win.height()};
}
+ function _container() {
+ const a = $(WB_AREA_SEL);
+ const c = a.find('.wb-area .tabs .ui-tabs-panel');
+ return c.length > 0 ? $(WBA_WB_SEL) : a;
+ }
function _getPos(list, w, h) {
if (Room.getOptions().interview) {
return {left: 0, top: 0};
}
- const wba = $(WBA_SEL), woffset = wba.offset()
+ const wba = _container(), woffset = wba.offset()
, offsetX = 20, offsetY = 10
, area = {left: woffset.left, top: woffset.top, right:
woffset.left + wba.width(), bottom: woffset.top + wba.height()};
const rectNew = {
@@ -106,6 +110,7 @@ var VideoUtil = (function() {
self.hasVideo = _hasVideo;
self.getRects = _getRects;
self.getPos = _getPos;
+ self.container = _container;
self.arrange = _arrange;
return self;
})();
--
To stop receiving notification emails like this one, please contact
[email protected].