Skip to main content

Bug Tracker

Side navigation

#5587 closed bug (invalid)

Opened December 03, 2009 08:51AM UTC

Closed December 10, 2009 06:29AM UTC

Last modified December 10, 2009 02:12PM UTC

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

Attachments (0)
Change History (3)

Changed December 03, 2009 05:13PM UTC by dmethvin comment:1

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

Changed December 10, 2009 06:29AM UTC by john comment:2

resolution: → invalid
status: newclosed

Closing until a test case is provided.

Changed December 10, 2009 02:12PM UTC by tsukasa1989 comment:3

Replying to [comment:2 john]:

Closing until a test case is provided.

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