Fixed the scrolling.

Scrolling is fixed, now the div will scroll only when scrollbar is at
the bottom.