Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8143491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:08:13+00:00 2026-06-06T13:08:13+00:00

So I like the custom multi select control that jquery-mobile has and want to

  • 0

So I like the custom multi select control that jquery-mobile has and want to use it. So please don’t suggest put data-role=”none”. But I just don’t want the default behavior of the select list to open up in a new dialog window if the list of options is long.

Reason I don’t want that behaviour is that it is not working so well on the ipad. It becomes tough to close it using the “X” on the left of the dialog. For some reason, it is becoming unresponsive on the ipad, but works fine on the desktop.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:08:15+00:00Added an answer on June 6, 2026 at 1:08 pm

    So dug really deep into the jquery mobile javascript (it was painful) to find out where this decision of going full screen is made for the multi select list. This code tells me that there is no flag as such that I can set to avoid it.

    However, since it is dependent on the height of the list (menuHeight), the fix that worked for me was to make some css changes (reduced padding for each list item) so that my list size was reduced:

    .ui-selectmenu-list li .ui-btn-inner a.ui-link-inherit
    {
        padding: .5em 15px .5em 15px;    
    }
    

    If you want to be dead sure to not show the dialog, then a dirty fix would be to put some override in your local copy of the jquery mobile code (I hate to do this but that’s the only way):

    //TODO: vishalkumar : I can override here by replacing below line by if (false)           
    if (menuHeight > screenHeight - 80 || !$.support.scrollTop) {
    
                    self.menuPage.appendTo($.mobile.pageContainer).page();
                    self.menuPageContent = menuPage.find(".ui-content");
                    self.menuPageClose = menuPage.find(".ui-header a");
    
                    // prevent the parent page from being removed from the DOM,
                    // otherwise the results of selecting a list item in the dialog
                    // fall into a black hole
                    self.thisPage.unbind("pagehide.remove");
    
                    //for WebOS/Opera Mini (set lastscroll using button offset)
                    if (scrollTop == 0 && btnOffset > screenHeight) {
                        self.thisPage.one("pagehide", function () {
                            $(this).jqmData("lastScroll", btnOffset);
                        });
                    }
    
                    self.menuPage.one("pageshow", function () {
                        focusMenuItem();
                        self.isOpen = true;
                    });
    
                    self.menuType = "page";
                    self.menuPageContent.append(self.list);
                    self.menuPage.find("div .ui-title").text(self.label.text());
                    $.mobile.changePage(self.menuPage, {
                        transition: $.mobile.defaultDialogTransition
                    });
                } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My form has a custom element like below, created using custom ajax: <select jwcid=testtest
I would like to use Canvas.drawText() to display multi-color text. More specifically, I want
I'd like to add custom controls to the mediaPlayer control view much as this
I'd like to use custom fields to display some page specific strings in the
I use a custom AuthorizationFilter like the followings: public class ActionAuthorizeAttribute : AuthorizeAttribute {
I'm writing a multi-tenant app that will receive requests like http://www.tenant1.com/content/images/logo.gif and http://www.anothertenant.com/content/images/logo.gif .
I have a multiselect control that looks like this (sorry for the long id
I need to keep the state of my Html control (I've a multi select
I have made a custom CMS and I'd like to make it multi-client while
I want to draw a multi-column UITableView like the picture below, which is different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.