* Fix bug in VerticalMenuView when pressing up with low number of items

* Minor work on message list
This commit is contained in:
Bryan Ashby 2015-08-30 21:42:24 -06:00
parent 87dcb1bdda
commit e852695354
3 changed files with 40 additions and 8 deletions

View file

@ -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--;