From 50e7ea3a0761a40ca78d16ed829d5344c24bfb55 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Feb 2013 18:38:03 +0530 Subject: [PATCH] update embed panel --- static/js/pandora/embedPanel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/pandora/embedPanel.js b/static/js/pandora/embedPanel.js index f3d69a00..c8a7e32f 100644 --- a/static/js/pandora/embedPanel.js +++ b/static/js/pandora/embedPanel.js @@ -19,7 +19,6 @@ pandora.ui.embedPanel = function() { video = Ox.extend(result.data, pandora.getVideoOptions(result.data)); var sizes = getSizes(); - Ox.print('SIZES', sizes) options.height = sizes.videoHeight; if (options.title) { @@ -299,7 +298,7 @@ pandora.ui.embedPanel = function() { videoHeight; if (options.matchRatio || options.showAnnotations) { videoHeight = Math.round(window.innerWidth / video.videoRatio); - options.matchRatio = options.height <= maxVideoHeight; + options.matchRatio = videoHeight <= maxVideoHeight; if (!options.matchRatio) { videoHeight = maxVideoHeight; }