Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5587 closed bug (invalid)

IE6 + IE7 IMG width()

Reported by: tsukasa1989 Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

Hello,

I'm trying to get the width() of an image. My code:

$(this).prevAll() .each(function(i) { alert($(this).width()); $offsetLeft += $(this).width(); }); In IE8 & FF i get the following result (for each alert):

  • 94, 94, 94, 94

In IE6 & IE7 i get the following result (for each alert):

  • 84, 84, 84

This is because i got margin: 0 5px; on my images. I think the function width() does not get the margins.

Greetings,

Tsukasa1989

Change History (3)

comment:1 Changed 10 years ago by dmethvin

Can you attach a complete test case? That will help in diagnosing and fixing the problem.

comment:2 Changed 10 years ago by john

Resolution: invalid
Status: newclosed

Closing until a test case is provided.

comment:3 in reply to:  2 Changed 10 years ago by tsukasa1989

Replying to john:

Closing until a test case is provided.

I try'd to recreate the bug. But i don't remember how.

Note: See TracTickets for help on using tickets.