jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.69k stars 2.41k forks source link

div data-role="navbar" fails when only one item in list #1107

Closed tmalaher closed 13 years ago

tmalaher commented 13 years ago

Gets an exception for :nth-child Using jquery-mobile 1.0a3 with jquery 1.5

scottjehl commented 13 years ago

This adds a fallback for navbars that have one item, so they simply fill 100%. Credit for this fix and idea goes to kennedyr (Richard Kennedy), but we changed the naming around a bit. Closed by 7f48419a2989726e6d46d0b6423f3a9f85ce4345. Thanks Richard!