diff --git a/app/assets/javascripts/app/controllers/notes.js b/app/assets/javascripts/app/controllers/notes.js index 1fa4d95a0..878e7486e 100644 --- a/app/assets/javascripts/app/controllers/notes.js +++ b/app/assets/javascripts/app/controllers/notes.js @@ -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() {