Bug 983812 - Center header text based on amount of available space

Well, it still does, see line 279.