@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.
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.