Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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:
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 7 years ago by timmywil

Component: unfileddimensions
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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

comment:2 Changed 7 years 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.

Note: See TracTickets for help on using tickets.