Fixes problem with toolbar position when selection is at the top of the
screen
Working to comply with jslint..