Fix bug when the hunk height was bigger than the viewport