Skip to main content

Bug Tracker

Side navigation

#12491 closed bug (notabug)

Opened September 08, 2012 09:20PM UTC

Closed September 09, 2012 05:18PM UTC

Last modified August 05, 2013 02:54PM UTC

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:
Description

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.

Attachments (0)
Change History (5)

Changed September 08, 2012 11:45PM UTC by dmethvin comment:1

owner: → anonymous
status: newpending

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

Changed September 09, 2012 05:09PM UTC by anonymous comment:2

status: pendingnew

Please close the ticket.

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

Changed September 09, 2012 05:18PM UTC by mikesherov comment:3

resolution: → notabug
status: newclosed

Changed July 03, 2013 01:03AM UTC by dmethvin comment:4

#14095 is a duplicate of this ticket.

Changed August 05, 2013 02:54PM UTC by anonymous comment:5

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.

Thanks.