-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Long select list appears, scrolls page and disappears #4776
Comments
I successfully overcame that issue with a neat trick - however not pixel-perfect, and it is only tested on an XPeria Arc S at the moment and Linux desktop Firefox 14. Once "Issue #3577" is done, this will be an even easier trick to apply on select lists. TWO (OR MORE) COLUMNS IN THE SELECT LIST! /* ul#add_cc_month-menu li /* the first element is a placeholder; if you don't have placeholder there, just remove or comment out these two rules */ ul#add_cc_month-menu li[data-option-index="0"] ul#add_cc_month-menu li[data-option-index="0"] a.ui-link-inherit The two columns next to each other are not exactly the same wide as the "header" (placeholder), I hope I will be able to fix that with some CSS magick. |
A workaround for the width problem:
|
About the width problem of your workaround. I think you can just solve that with negative margin:
|
@uGoMobi It works! Thanks, I did not have enough time to find this neat CSS solution myself. And the two column list also looks good! In fact it looks good enough to be a built-in feature - imho. |
@mrextreme - Can you provide a test page for the original issue. JS Bin template can be found here. |
I will try to replicate it when I have some free time. If I can't do it in the next few days, then I won't be able to do it until early January, though. |
@mrextreme - Ok, no problem. I close the ticket for now and we re-open as soon as you posted a test page. |
On Android 2.3.4, stock browser, JQ 1.7.2 and JQM 1.1.1, SE xPeria Arc.
I have a "long" select list with native menu set to false, the months of the year from "January" to "December" as a form element. The list is long enough to not to fit the screen, you have to scroll. When I display the form, everything is ok, the long selects also work fine as they supposed to (other than that they never lose the "on focus" styling). If I don't fill in the form correctly, jQuery Validate will add extra elements to the page to show the errors, thus making the whole page longer. If I try to open the select menu now to fix my mistakes, most of the times it will quickly scroll the page a bit, open the select menu in a new blank page and immediatelly close it and scroll the page with the form back to where it was. But then if I scroll the page up and down, the menus will work again for that one time, and then they won't work any more until the next manual scrolling.
The text was updated successfully, but these errors were encountered: