adamdbradley/foresight.js — pull request #22 by jmuthad (2012-05-04 16:27:48+00:00)
Title: Issue #21 fix + work on better supporting percent widths and displays that are not none

This pull request will fix issue #21 and should also resolve an issue I found where images with a percent width and aspect-ratio of auto were getting the window width rather then the container width. If percentage is used without aspect-ratio auto this issue still occurs and will need to be fixed.

I'll log another issue on that as I the only fix I know of is to change the getComputedPixelWIdth to not set position to absolute and I imagine there are other reasons that was done that I didn't want to break.

I also resolved an issue where images that didn't have a display:none were not getting width values at all.

I tried to test it in all the browsers I have (IE8, chrome, chrome mobile, firefox, and safari) but it's certainly possible I misunderstood how something was supposed to work in a demo or two.

Thanks,
Thad