davatron5000/FitVids.js — pull request #116 by kenhowardpdx (2013-05-13 22:08:22+00:00)
Title: Set Default Width and Height when Width or Height are not numbers

[Fixed Issue #114](https://github.com/davatron5000/FitVids.js/issues/114)
>This Vimeo iframe causes the video to be displayed really tall with big black bars. I think it must have something to do with the mix of ints and percents and the aspect ratio calculation. Sorry, my JavaScript is not strong enough yet to be able to suggest a fix.

<iframe src="http://player.vimeo.com/video/17914974" height="200" width="100%" allowfullscreen="" frameborder="0"></iframe>

This fix checks the height and width values of the element. If either the height or width values are not a number (contain a percent sign) a default height of '9' pixels and default width of '16' pixels are applied to the corresponding attributes of that element.