Andrey Rudenko
Andrey Rudenko

Reputation: 1301

Nestedlist item's height (Sencha Touch 2.1.0)

I have created a nested list with custom template (I have made custom function getItemTextTpl). The problem is that I can't change the nested list item's height (image attached). There was no such problem in Sencha Touch 2.0.0. Is there possibility to change item height?

enter image description here

Upvotes: 2

Views: 1083

Answers (1)

Andrey Rudenko
Andrey Rudenko

Reputation: 1301

I have solved the problem by my self. They have added new list properties in Sencha Touch v2.1.
One of those properties is itemHeight. It's the property which is used for item's height (more info here). To use this property in nestedlist, you have to initialize nestedlist's property listConfig. Like this:

listConfig: {
  itemHeight: 100
}

Maybe you will also need to check new list's property variableHeights (more info here).

Upvotes: 1

Related Questions