Re-add some code.

This code executes when we have too many tabs, and the pinned tabs would scroll off the top, so we probably want to keep it live.