jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox ListBox autoItemsHeight problem

This topic contains 5 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • ListBox autoItemsHeight problem #69867

    Chris99
    Participant

    Hello,

    I have a problem with autoItemsHeight where it is incorrectly calculating the height for some entries. I am designing a mobile PhoneGap app and in certain cases the row height is under calculated, meaning the last line of the row is partly hidden by the next row.

    I have tried to show this in a Fiddle by taking one of your examples and modifying it slightly. I could not reproduce my exact issue, but I did get the row height to be over calculated, meaning there is a gap between some rows. Please see and . These show the problem in Firefox, and it can be reproduced in Chrome by altering the width of the ListBox as per the comments.

    My hope is that both my problem and the Fiddle problem are caused by the same calculation issue.

    Thank you for taking a look,

    Chris

    ListBox autoItemsHeight problem #69870

    Peter Stoev
    Keymaster

    Hi Chris,

    We do not have such property in jqxListBox. We have internal property with the same name which represents a feature which is not yet released.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    ListBox autoItemsHeight problem #69879

    Chris99
    Participant

    Okay Peter.

    I came across it in this forum post http://www.jqwidgets.com/community/topic/disable-horizontal-scrollbar-in-listbox/ and thought it was part of the public API. How can I get a list box to display custom rendered table rows, as per the examples, but where the text may cause wrapping which results in not all rows being of the same height?

    Cheers,

    Chris

    ListBox autoItemsHeight problem #69880

    Peter Stoev
    Keymaster

    Hi Chris,

    The thread is from 2 years ago. There is no such property in the public API available for ver. 3.7.1 – the current one so we do not support this property. The items in the ListBox can be with fixed height by setting the itemHeight property. Ex: http://jsfiddle.net/jqwidgets/KJ6V6/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    ListBox autoItemsHeight problem #69882

    Chris99
    Participant

    Hi Peter,

    I didn’t realise how old the post was. Unfortunately fixed height won’t work in my case. Am I correct in thinking that if itemHeight is set to -1 then long text will introduce a horizontal scrollbar rather than wrapping?

    Cheers,

    Chris

    ListBox autoItemsHeight problem #69884

    Peter Stoev
    Keymaster

    Hi Chris,

    itemHeight sets the height of the items. This is not related to wrapping. You may have 1 text line with Item that takes 150px height. I suggest you to implement custom “renderer” if you need wrapping support.

    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.