jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList Wrong items height using knockoutJS binding with first empty item

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 12 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Hello.

    When using knockoutJS binding for jqxDropDownList and the source’s first element has empty label (which is often needed for “no selection”), dropdown items are rendered incorrectly, the height is below normal (8px in my case). It would be logical to use “itemHeight” property for this, however…

    It is impossible to use “itemHeight” property with knockoutJS binding, and changing this property’s value after the source has been set for the dropdown has no effect on control. In jqxKnockout some properties have priority (like “source”) over others – source is set before “itemHeight”, and as jqxListBox._calculateVirtualSize takes first element’s height for the “normal” height, it is obviously incorrect for first empty element. When “itemHeight” property is set later, and it doesn’t trigger jqxListBox re-calculation.

    Any changes to have this fixed in next versions?


    Dimitar
    Participant

    Hello NickVishnievski,

    Thank you for the feedback. The issue will be fixed in the next version of jQWidgets.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.