jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList Dropdown – 4th Item not showing

This topic contains 5 replies, has 3 voices, and was last updated by  Peter Stoev 11 years ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Dropdown – 4th Item not showing #55905

    jean-frederic
    Participant

    Hello,

    The Bug : The 4th Item is not showing.

    This issue happen with thoses factors :

    List need to have an horizontal scrollbar.
    List need to have 4 items. (with 3 or 5 items, this bug don’t occur)

    This is the JsFiddler

    http://jsfiddle.net/Alegzandra/WMyFz/2/

    Thanks

    Dropdown – 4th Item not showing #55911

    Peter Stoev
    Keymaster

    Hi jean-frederic,

    You can use autoDropDownHeight or simply use a different dropDownHeight value.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dropdown – 4th Item not showing #55939

    Alexandra
    Participant

    Hey,

    The “autoDropDownHeight” or to change the “dropDownHeight” value, are not a solution because I don’t know how many items will be in the dropDownList, it could be 3-4-5…-20 items or more.
    The number of items in the list depends on some other parameters.

    Do you have any other suggestions ?

    Thank you.

    Dropdown – 4th Item not showing #55950

    Peter Stoev
    Keymaster

    Hi Alexandra,

    Why isn’t that an option? The problem is obvious with this specific number of items so if you change it to more appropriate value, it would work fine.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dropdown – 4th Item not showing #56025

    Alexandra
    Participant

    Hey,

    Well…I fixed this after I changed the dropDownHeight value but this took me a few minutes to find out the EXACT height that my dropdown must have.

    It is not normal to decide how many items I want to be displayed, to take the size of my font and to do the math to find out how many pixels the dropdown can have in order not to have problems with the vertical scroll… I think that it should be different : I have a list of items, I set the height of the dropdown and it will have to adjust (add scroll or not) so I can see every item correctly.

    I updated the fiddle to illustrate that 1px can decide if the vertical scroll appears or not…
    http://jsfiddle.net/Alegzandra/WMyFz/3/

    Thank you.

    Dropdown – 4th Item not showing #56029

    Peter Stoev
    Keymaster

    Ok, Alexandra. Thank you for your comments. The world is not perfect and sometimes a pixel matters :). We will do our best to improve our layout calculations in the future.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.