Embedded YouTube video gets weird height issues!

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Jul 30, 2015 10:48 pm
Reply with quote
Report this post
Hi, if you take a look into this page you will see that the embedded youtube video is insanely tall and overlaps my beloved image gallery...

https://it.mgscreativa.com.ar/playtime/ ... s-playtime

Any hint will be very appreciated.

Thanks!
User avatar
Expert Boarder

GK User
Thu Jul 30, 2015 11:02 pm
Reply with quote
Report this post
I think the issue is in file templates/gk_rockwall/js/fitvids.jquery.js in line 77
Code: Select all
        $this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");

The padding-top gets calculated wrong it seems...

Partially solved by adding this CSS rule
Code: Select all
.avVideo .avPlayerContainer .avPlayerBlock .fluid-width-video-wrapper {
  padding: 0 !important;
}

It would be great if the JS file gets fixed...
User avatar
Expert Boarder

teitbite
Sat Aug 01, 2015 1:33 pm
Reply with quote
Report this post
Hi

Fitvid is an outside plugin, so we cannot just change it like that. Problem is that there are 2 different codes to achieve responsive video effect. As You've mentioned easiest way to make it work is by disabling one of this codes. Of course easier to disable fitvid plugin or just overwrite it's functionality with :

Code: Select all
.avVideo .avPlayerContainer .avPlayerBlock .fluid-width-video-wrapper {
  padding: 0 !important;
}
User avatar
Moderator

GK User
Sat Aug 01, 2015 1:40 pm
Reply with quote
Report this post
Great si I wasn't so wrong! jeje.

Thanks a lot!
User avatar
Expert Boarder


cron