Vimeo offset tweak (fixes #826)

This commit is contained in:
Sam Potts
2018-03-22 01:08:08 +11:00
parent c251c94131
commit 5eafe9baff
12 changed files with 12 additions and 12 deletions

View File

@ -11671,7 +11671,7 @@ var vimeo = {
setAspectRatio: function setAspectRatio(input) {
var ratio = utils.is.string(input) ? input.split(':') : this.config.ratio.split(':');
var padding = 100 / ratio[0] * ratio[1];
var height = 200;
var height = 240;
var offset = (height - padding) / (height / 50);
this.elements.wrapper.style.paddingBottom = padding + '%';
this.media.style.transform = 'translateY(-' + offset + '%)';