Bug Tracker

Modify

Ticket #10204 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: courtois@… Owned by:
Priority: low Milestone: None
Component: dimensions Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

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/

Change History

comment:1 Changed 3 years ago by addyosmani

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to dimensions

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!

comment:2 Changed 3 years ago by Pascal COURTOIS <courtois@…>

sorry, it was an interaction with ad-block

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.