Skip to main content

Bug Tracker

Side navigation

#8739 closed bug (invalid)

Opened April 01, 2011 09:19AM UTC

Closed April 01, 2011 12:54PM UTC

outerWidth() doesn't work on elements within an element with display:none

Reported by: wheresrhys Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

Not sure if this is a really a bug, but the behaviour is a bit weird. When an element is contained in a display:none container .outerWidth() returns .css("width").

http://jsfiddle.net/wheresrhys/WQvz5/

Attachments (0)
Change History (1)

Changed April 01, 2011 12:54PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

The element needs to be visible in order to get its dimensions properly.