recalc header position