Ticket #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: | ||
| Blocking: | Blocked by: |
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
Change History
comment:2 Changed 3 years ago by addyosmani
- Status changed from new to closed
- Resolution set to worksforme
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?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

