ensuring correct position of content

When no scrollbar ensure that content does not go above top viewport
When scrollbar ensure that bottom of content does not scroll above bottom of viewport