Tabs: Fixed handling of tabs in large view

Fixes #5587