forked from 0x2620/pandora
update embed panel
This commit is contained in:
parent
1e87c3f71f
commit
50e7ea3a07
1 changed files with 1 additions and 2 deletions
|
@ -19,7 +19,6 @@ pandora.ui.embedPanel = function() {
|
||||||
video = Ox.extend(result.data, pandora.getVideoOptions(result.data));
|
video = Ox.extend(result.data, pandora.getVideoOptions(result.data));
|
||||||
|
|
||||||
var sizes = getSizes();
|
var sizes = getSizes();
|
||||||
Ox.print('SIZES', sizes)
|
|
||||||
options.height = sizes.videoHeight;
|
options.height = sizes.videoHeight;
|
||||||
|
|
||||||
if (options.title) {
|
if (options.title) {
|
||||||
|
@ -299,7 +298,7 @@ pandora.ui.embedPanel = function() {
|
||||||
videoHeight;
|
videoHeight;
|
||||||
if (options.matchRatio || options.showAnnotations) {
|
if (options.matchRatio || options.showAnnotations) {
|
||||||
videoHeight = Math.round(window.innerWidth / video.videoRatio);
|
videoHeight = Math.round(window.innerWidth / video.videoRatio);
|
||||||
options.matchRatio = options.height <= maxVideoHeight;
|
options.matchRatio = videoHeight <= maxVideoHeight;
|
||||||
if (!options.matchRatio) {
|
if (!options.matchRatio) {
|
||||||
videoHeight = maxVideoHeight;
|
videoHeight = maxVideoHeight;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue