Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#5440 closed bug (worksforme)

outerheight() and outerwidth() errors in firefox

Reported by: Ollie Owned by:
Priority: critical Milestone: 1.4
Component: dimensions Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

Firefox 3.5.4

The sizing information reported in Firefox for outerheight and outerwidth() does not accurately include border for both sides of a conatiner

This works accurately in Chrome and in IE

Attachments (2)

css_sizing.htm (2.1 KB) - added by Ollie 10 years ago.
jQuerybug.pdf (208.4 KB) - added by Ollie 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Ollie

Attachment: css_sizing.htm added

Changed 10 years ago by Ollie

Attachment: jQuerybug.pdf added

comment:1 Changed 9 years ago by dmethvin

Component: unfileddimensions

comment:2 Changed 9 years ago by addyosmani

Resolution: worksforme
Status: newclosed

For the above test case, the outerWidth and outerHeight being returned by FireFox 3.6.10, Chrome and Safari is:

outerHeight: 224 outerWidth: 294

This is calculated as: outerHeight: 180 + (2*20) + (2*2) = 224 (where 20 is the padding on each side and 2 represents the border width)

outerWidth: 250 + (2*20) + (2*2) = 294 (again where 20 is the padding on each side and 2 represents the border width)

which is correct.

Looking at FireFox 3.5 on the Mac, I seem to be getting the same numbers returned.

Could you resubmit the ticket informing us what platform you were testing this bug on just so we can investigate further?

comment:3 Changed 9 years ago by mouette <julien_muetton@…>

Just to report I encountered the issue in firefox 3.6.10 on windows either.

comment:4 Changed 9 years ago by jitter

WFM with FF 3.6.12 on windows

comment:5 Changed 8 years ago by anonymous

I found this same bug on Firefox 4.0 for Mac on Snow Leopard. I fixed some of them by expanding the shortened padding definitions, e.g. 60px 20px 20px

to 60px 20px 20px 20px

But there's still a difference somewhere else.

Note: See TracTickets for help on using tickets.