#11232 closed bug (invalid)
outerWidth / Height, innerWidth / Height - return incorrect value
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | dimensions | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 11 years ago by
Component: | unfiled → dimensions |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 11 years ago by
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.
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.