Global select box display bug??
It seems like currently there is a fairly large bug in the select box control which variates whether it displays a listview overlay or creates a new page of list items (for small/larger lists of items for usability). Even the jQM example at:
http://jquerymobile.com/demos/1.0a2/#docs/forms/forms-selects.html
is affected as well it seems. The bug only seems to occur if the amount of items in the select box is reasonably close or more than enough for a full screens worth of select box items but there's a large variance it accepts. Try going to that example and look at the "Your State" select box example. Click it once and it should display the select box items in the "full page" format, then X out of the box without selecting anything, and then click it again and it shows the "list overlay" format. Doing this more and more, it alternates each time which version it displays when it should just be the full page format every time consistently since there's a lot of items (50 of course). And when it does incorrectly display in the "list overlay" format, since there are so many items it often is shifted far down the screen and looks really bad on the page. Every other time the select box widget calculates the size of the menu height to determine which to display, it somehow gets a 0 height for the menu and displays the incorrect "overlay list" format.
I could make due with this for now but it is causing me application errors. On one of my forms, after clicking around on the select boxes eventually I can also trigger an error "urlStack.pop() is undefined" in the changePage method called from the select box when doing the "full page" format. I'm just guessing but it seems like this display bug is causing unexpected counts in the page history tracked in changePage eventually resulting in this error. This error also prevents the form from submitting since I use changePage to move the user to their resulting page.
Has anyone else noticed this at all? It seems like a fairly large problem with the select box widget but can't find anyone else mentioning yet on forums. Anyone solve this their own way??