onWindowResize = () => {
    if (results.length <= MIN_VISIBLE_RESULTS) return false

    let maxVisibleResults = Math.floor((window.outerHeight - INPUT_HEIGHT) / RESULT_HEIGHT)
    maxVisibleResults = Math.max(MIN_VISIBLE_RESULTS, maxVisibleResults)
    if (maxVisibleResults !== visibleResults) {
      actions.changeVisibleResults(maxVisibleResults)
    }
  }
Handle resize window and change count of visible results depends on window size