When immediately after page loaded, you added the contact btn was display quite large.
Then after the contact button become normal size.
Lightning get the header height when the contact button was large displaying and that hight add to margin top.
Immediately after, button size and header hight is small.
But page-header top margin hight is still high.
You want to fix this issue that, you set to small contact btn when page load immediately after too.