This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/4.0.x by this push:
     new 3d6c199  [OPENMEETINGS-1877] JS infinite loop is fixed
3d6c199 is described below

commit 3d6c1993ab4d3c6e183c82cf8d63b7c26878d2c1
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Wed Apr 25 17:23:56 2018 +0700

    [OPENMEETINGS-1877] JS infinite loop is fixed
---
 .../src/main/java/org/apache/openmeetings/web/room/video-util.js        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 950efbb..e7a7398 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
@@ -82,7 +82,7 @@ var VideoUtil = (function() {
                                }
                                if (rectNew.right >= area.right) {
                                        rectNew.left = area.left;
-                                       rectNew.top = minY + offsetY;
+                                       rectNew.top = Math.max(minY, 
rectNew.top) + offsetY;
                                        posFound = false;
                                }
                                if (rectNew.bottom >= area.bottom) {

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to