jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Youtube repsonsive embed add an extra 30px to height

Open RavanH opened this issue 8 years ago • 3 comments

Hi, as seen on line 202 and 206 of modules/shortcodes/youtube.php

$h = ceil( ( $w / 16 ) * 9 ) + 30;

there is an extra 30 pixels added to the height of the otherwise perfectly fine 16:9 ratio. The other video embed shortcodes, Vimeo and Dailymotion, do not have this extra height.

Why?

RavanH avatar Jun 19 '18 15:06 RavanH

Hey @RavanH I looked through commit history and it looks like it was initially created like this: https://github.com/Automattic/jetpack/commit/99e10babcb00e4d5f9a8d9d91584f71626fceb2f

@mdawaffe maybe to have some insight on this?

brbrr avatar Jun 20 '18 11:06 brbrr

@brbrr, Yes you can see some history at r30050-wpcom, r30306-wpcom.

We needed it back in the day to make room for the video chrome. If it's not useful now, we should ditch it.

mdawaffe avatar Jun 21 '18 20:06 mdawaffe

Fixed in #9801

jeherve avatar Sep 04 '18 10:09 jeherve