PDA

View Full Version : Firefox and image size.



jlizarraga
03-16-2009, 08:03 PM
Hi all,

Firefox seems to be the only browser (not experiencing this in IE6, Safari, Opera, or Chrome, but have the same problem with FF2 and FF3), that doesn't always know the correct dimensions of an image when it's "load" event fires.

Instead, I have to wait for the window's "load" event to fire, because Firefox knows the image sizes for sure at this point.

Is there something I'm missing? Or something else I should be using to find out when an image has loaded and is ready to tell function X its dimensions?

Thanks!