Commit 46c950be authored by Anton Koch's avatar Anton Koch

Merge branch 'mosys11--fixing-error-throwing-video-cell' into 'master'

fixed the error throwing video cell (#11)

See merge request !14
parents 6d2eb85a c07f59d6
Pipeline #12111 passed with stage
in 8 minutes and 41 seconds
......@@ -106,19 +106,21 @@
resizeVideo () {
if (this.$refs) {
let player = this.$refs.videoPlayer
let vjs = player.$el.querySelector('.video-js')
if (player && !vjs.classList.contains('vjs-youtube')) {
let video = player.$el.querySelector('.vjs-tech')
if (video) {
let pw = video.clientWidth
let cw = this.$el.clientWidth
if (cw > pw) {
video.style.width = '100%'
video.style.height = 'auto'
}
else {
video.style.height = '100%'
video.style.width = 'auto'
if (player) {
let vjs = player.$el.querySelector('.video-js')
if (player && !vjs.classList.contains('vjs-youtube')) {
let video = player.$el.querySelector('.vjs-tech')
if (video) {
let pw = video.clientWidth
let cw = this.$el.clientWidth
if (cw > pw) {
video.style.width = '100%'
video.style.height = 'auto'
}
else {
video.style.height = '100%'
video.style.width = 'auto'
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment