Ticket #1347 (closed bug: invalid)
.width() incorrect for non-displayed/hidden elements
|Reported by:||sidebog7||Owned by:||brandon|
I upgraded to the latest version of jQuery and all my .width() calls for hidden unordered lists came back incorrect. If the uls were set to visible then the correct value was returned.
Attached file with example. $('ul').width() returns same value as $(document).width() if the ul is hidden. When displayed it returns the correct value 21 (or similar).