Skip to main content

Bug Tracker

Side navigation

#11232 closed bug (invalid)

Opened January 26, 2012 04:02PM UTC

Closed January 26, 2012 04:13PM UTC

Last modified February 29, 2012 08:57AM UTC

outerWidth / Height, innerWidth / Height - return incorrect value

Reported by: duzzers@gmail.com 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.

Attachments (0)
Change History (2)

Changed January 26, 2012 04:13PM UTC by timmywil comment:1

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.

Changed February 29, 2012 08:57AM UTC by duzzers@gmail.com comment:2

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.