diff options
author | Sam Potts <me@sampotts.me> | 2017-11-06 20:27:19 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2017-11-06 20:27:19 +1100 |
commit | 3a9beaed59f4eaca6ce2fd3f167f5c171317bb26 (patch) | |
tree | 177897eb397e89e115e49f1ad0eeccd72f593d27 /src/js/plugins/vimeo.js | |
parent | 1578525ee38a50b31266bc9ba3ecd62705d4a5d5 (diff) | |
download | plyr-3a9beaed59f4eaca6ce2fd3f167f5c171317bb26.tar.lz plyr-3a9beaed59f4eaca6ce2fd3f167f5c171317bb26.tar.xz plyr-3a9beaed59f4eaca6ce2fd3f167f5c171317bb26.zip |
Vimeo captions fix
Diffstat (limited to 'src/js/plugins/vimeo.js')
-rw-r--r-- | src/js/plugins/vimeo.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js index 6e4f34a2..9b67bdb0 100644 --- a/src/js/plugins/vimeo.js +++ b/src/js/plugins/vimeo.js @@ -19,7 +19,7 @@ const vimeo = { // Set aspect ratio const ratio = this.config.ratio.split(':'); const padding = 100 / ratio[0] * ratio[1]; - const offset = (400 - padding) / 8; + const offset = (300 - padding) / 6; this.elements.wrapper.style.paddingBottom = `${padding}%`; this.media.style.transform = `translateY(-${offset}%)`; |