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

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