Skip to main content

Bug Tracker

Side navigation

#10204 closed bug (worksforme)

Opened September 05, 2011 11:44AM UTC

Closed September 05, 2011 10:10PM UTC

Last modified September 06, 2011 04:43AM UTC

image size not set in load event when loaded from another event

Reported by: courtois@sociatom.com Owned by:
Priority: low Milestone: None
Component: dimensions Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

observed on chrome 15.0.865.0. ok with IE 8, Opera 11.50, Safari 5.1 and FF 6.0

when an image is loaded from a click event, width and height of the image are 0 when get from the load event

http://jsfiddle.net/courtois/UpaUt/

Attachments (0)
Change History (2)

Changed September 05, 2011 10:10PM UTC by addyosmani comment:1

component: unfileddimensions
priority: undecidedlow
resolution: → worksforme
status: newclosed

I've just tested your submitted jsFiddle with Chrome 14.08 and 15.0.865 and both are returning the dimensions correctly when tested with jQuery edge. http://jsfiddle.net/UpaUt/2/. Please double check your code and the version of jQuery used for testing (git/edge is the absolutely latest). Thanks!

Changed September 06, 2011 04:43AM UTC by Pascal COURTOIS <courtois@sociatom.com> comment:2

sorry, it was an interaction with ad-block