Enhanced positioning of scrollbar.

The scrollbar now accounts for the last element in the scrollbar and
does not allow the scroll to go past the point where the far right item
is farther left than the right edge of the container.