TabBar: keep the current tab within the visible area

This makes it possible for the style to simply increment
or decrement the current index (consider arrow buttons).

Change-Id: I048924d7f1f506ecc3005d2ebdfeb01d5ea6ca40
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>