Slightly simplified the scrollbar placement.

This is a minor cleanup and removes a slightly overblown
'switch' statement in favour of a less code-duplicate-ish
version.