Change header padding value before altering position.

Doing it the other way round stops the automatic scroll-to-bottom from working properly.