Fix TabPage header to scroll to the top after header reparented

This is a bit better than it used to be but I still don't like
it. Having dedicated pages for history, tabs, and the new tab
could solve some issues that we are still having here.