Bug Tracker

Opened 9 years ago

Closed 9 years ago

#8739 closed bug (invalid)

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/

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.