Calculating argument margin and adjusting context element margin