To edit the default height of list items, you have two ways to do this:
- Create your own Sencha theme with SASS (the official Sencha way to do this).
- Override the Sencha theme's CSS theme.
In the first case, you need to change the value of the $ global-row-height variable, for example, for example.
$global-row-height: 100px;
If you want to override the CSS class directly with an additional CSS file, you can do this by adding a new rule like this:
.x-list .x-list-item { min-height: 100px; }
If you want to set the list height to a single list, you must set your css class as follows:
.myList .x-list-item { min-height: 100px; }
and add cls configuration parameter to your list definition e.g.
var list = new Ext.List({ cls: 'myList', ... ... });
You can also use the itemHeight list configuration property, for example:
var list = new Ext.List({ itemHeight: 25,
However, I always suggest studying SASS. It is very easy, and it is really worth learning.
Hope this helps.
source share