Bug Tracker

Opened 10 years ago

Closed 10 years ago

#11422 closed bug (invalid)

OUTERWIDTH / HEIGHT, INNERWIDTH / HEIGHT - RETURN INCORRECT VALUE

Reported by: [email protected] Owned by: [email protected]
Priority: low Milestone: None
Component: dimensions Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

Create the same bug http://bugs.jquery.com/ticket/11232, as it is still present.

.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.

Change History (3)

comment:1 Changed 10 years ago by sindresorhus

Owner: set to [email protected]
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

comment:2 Changed 10 years ago by [email protected]

Status: pendingnew

Hmmm, It works right. I can't remember bad conditions. We can close the ticket. If I find it, I will report.

Thanks!

comment:3 Changed 10 years ago by sindresorhus

Component: unfileddimensions
Priority: undecidedlow
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.