LSP: preview height.. force

This commit is contained in:
cat 2016-06-14 14:56:54 +02:00 committed by Thulinma
parent 680f9acfa8
commit 589dcd21ea
4 changed files with 15 additions and 11 deletions

View file

@ -141,8 +141,8 @@ function mistembed(streamname) {
var ratio;
// get the container's width/height
var containerwidth = parseInt(container.scrollWidth, 10);
var containerheight = parseInt(container.scrollHeight, 10);
var containerwidth = parseInt(container.clientWidth, 10);
var containerheight = parseInt(container.clientHeight, 10);
if(videowidth > containerwidth && containerwidth > 0) {
ratio = videowidth / containerwidth;