You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/06/28 03:57:35 UTC
[openmeetings] branch OPENMEETINGS-1142-new-look updated:
[OPENMEETINGS-1142] code clean-up
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch OPENMEETINGS-1142-new-look
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/OPENMEETINGS-1142-new-look by this push:
new 348843c [OPENMEETINGS-1142] code clean-up
348843c is described below
commit 348843cb1965ffa804a9e77cba98bb3292ff79f5
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Thu Jun 28 10:57:25 2018 +0700
[OPENMEETINGS-1142] code clean-up
---
openmeetings-flash/src/main/flex/main.mxml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/openmeetings-flash/src/main/flex/main.mxml b/openmeetings-flash/src/main/flex/main.mxml
index d0c2780..97d0517 100644
--- a/openmeetings-flash/src/main/flex/main.mxml
+++ b/openmeetings-flash/src/main/flex/main.mxml
@@ -397,12 +397,13 @@
var w:Number = _width, h:Number = _height;
if (!muted) {
var ratio:Number = params.width / params.height;
- if (_width / ratio > _height) {
+ var nh:int = Math.ceil(_width / ratio);
+ if (nh > _height) {
w = Math.ceil(ratio * _height);
h = _height;
} else {
w = _width;
- h = Math.ceil(_width / ratio);
+ h = nh;
}
debug("vidResize:: " + _width + "x" + _height + "->" + w + "x" + h);
}