update embed panel

This commit is contained in:
rolux 2013-02-20 18:38:03 +05:30
parent 1e87c3f71f
commit 50e7ea3a07

View file

@ -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;
}