mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
* Fix bug in VerticalMenuView when pressing up with low number of items
* Minor work on message list
This commit is contained in:
parent
87dcb1bdda
commit
e852695354
3 changed files with 40 additions and 8 deletions
|
@ -156,9 +156,11 @@ VerticalMenuView.prototype.onKeyPress = function(ch, key) {
|
|||
this.focusedItemIndex = this.items.length - 1;
|
||||
|
||||
this.viewWindow = {
|
||||
top : this.items.length - this.maxVisibleItems,
|
||||
//top : this.items.length - this.maxVisibleItems,
|
||||
top : Math.max(this.items.length - this.maxVisibleItems, 0),
|
||||
bottom : this.items.length - 1
|
||||
};
|
||||
|
||||
} else {
|
||||
this.focusedItemIndex--;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue