Use dynamic value for DefaultNotesToDisplayValue in notes list

This commit is contained in:
Mo Bitar
2018-02-06 09:49:47 -06:00
parent 92fb684e0e
commit 09eff0db7e

View File

@@ -95,7 +95,8 @@ angular.module('app')
}
}
this.DefaultNotesToDisplayValue = 20;
let MinNoteHeight = 51.0; // This is the height of a note cell with nothing but the title, which *is* a display option
this.DefaultNotesToDisplayValue = (document.documentElement.clientHeight / MinNoteHeight) || 20;
this.notesToDisplay = this.DefaultNotesToDisplayValue;
this.paginate = function() {