Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11232 closed bug (invalid)

outerWidth / Height, innerWidth / Height - return incorrect value

Reported by: [email protected] 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 Timmy Willison

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 11 years ago by [email protected]

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.