Account for border padding for border-box dynamic resize