Fixed caclulation of the maxWidth in onTheRightFromMatch, onTheLeftFromMatch.
Fixed calculation of the maxHight in belowMatch