Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#12491 closed bug (notabug)

outerWidth() / outerHeight() returns the jquery object when called with zero args

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:


behavior of this has changed from 1.7 to 1.8.

When calling $(".selector").outerWidth() or .outerHeight(), the $(".selector") object is returned rather than outerWidth without the margins.

Calling $(".selector").outerWidth(false) works as expected.

Change History (5)

comment:1 Changed 11 years ago by dmethvin

Owner: set to anonymous
Status: newpending

Please provide a test case. Most likely something is shimming outerWidth(). Be sure your plugins are up to date.

comment:2 Changed 11 years ago by anonymous

Status: pendingnew

Please close the ticket.

This was actually being caused by an older version of jQuery UI hooking the outerWidth function.

comment:3 Changed 11 years ago by mikesherov

Resolution: notabug
Status: newclosed

comment:4 Changed 10 years ago by dmethvin

#14095 is a duplicate of this ticket.

comment:5 Changed 10 years ago by anonymous

I was also facing the same issue while I was on jquery UI V 1.1.18. Changing the version to 1.1.23 resolved the issue.


Note: See TracTickets for help on using tickets.