Skip to content

Commit

Permalink
hopefully bigger list items
Browse files Browse the repository at this point in the history
  • Loading branch information
kenan238 committed Jan 17, 2023
1 parent 0067aa5 commit f016a36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/widgets/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ function List(options) {
this.style.item.focus = this.options.itemFocusEffects;
}

if (this.options.itemHeight) {
this.style.item.height = 2;
}

this.interactive = options.interactive !== false;

this.mouse = options.mouse || false;
Expand Down Expand Up @@ -237,7 +241,7 @@ List.prototype.createItem = function(content) {
left: 0,
right: (this.scrollbar ? 1 : 0),
tags: this.parseTags,
height: 1,
height: this.style.item.height || 1,
hoverEffects: this.mouse ? this.style.item.hover : null,
focusEffects: this.mouse ? this.style.item.focus : null,
autoFocus: false
Expand Down
1 change: 1 addition & 0 deletions src/lib/widgets/listtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ ListTable.prototype.select = function(i) {
this.setScroll(this.childBase - 1);
}
this._select(i);
// header offset
this.scrollTo(this.selected - 1);
};

Expand Down

0 comments on commit f016a36

Please sign in to comment.