Modify ↓
Ticket #11232 (closed bug: invalid)
outerWidth / Height, innerWidth / Height - return incorrect value
| Reported by: | duzzers@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | dimensions | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
E.g.:
.item { padding: 5px 5px 5px 1px; width: 10px; }
$('.item').innerHeight() // will return: 20
This is incorrect - and should return: width + padding-left + padding-right = 16
The same thing is for outer methods.
Change History
comment:1 Changed 16 months ago by timmywil
- Priority changed from undecided to low
- Resolution set to invalid
- Status changed from new to closed
- Component changed from unfiled to dimensions
comment:2 Changed 15 months ago by duzzers@…
Hey,
The bug still present. I mean innerWidth in my code example above, so, again:
.item { padding: 5px 5px 5px 1px; width: 10px; }
$('.item').innerWidth() // will return: 20
And this is incorrect - should return: width + padding-left + padding-right = 16 The same thing is for outer methods.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Looks right to me. Give those values, 20 is correct for innerHeight. padding-left and padding-right would be for innerWidth.