humanmade / protected-embeds

A drop-in replacement for WordPress.com protected embeds
11 stars 4 forks source link

Responsive embed improvements #11

Open roborourke opened 8 years ago

roborourke commented 8 years ago

Fixes #10

@joehoyle this is what I was referring to, so fitvids will figure out the intrinsic size of an embed and allow to fill the whole iframe, then the resulting natural height is calculated. Also added a debounced resize event so it's recalculated orientation changes for example.

Need to test with a few more types of embeds, but if an explicit height is set in the shortcode it respects that.

joehoyle commented 8 years ago

@roborourke this looks like it could work, let me know how it goes with testing any edgecases with the videos.