restore rest of @sujitbehera27's fix for firefox

sorry, i didn't think these lines were doing anything
add pager to search height calculation

helps not scrolling short searches on firefox