This fixes the issue where max margin is used to find offset of floating box although horizonal margins do not collapse so they need to be summed instead.