      */
     public class func right(parent: UIView, child: UIView, right: CGFloat = 0) {
         prepareForConstraint(parent, child: child)
-        
         parent.addConstraint(NSLayoutConstraint(item: child, attribute: .right, relatedBy: .equal, toItem: parent, attribute: .right, multiplier: 1, constant: -right))
-        
-        child.updateConstraints()
-        child.setNeedsLayout()
-        child.layoutIfNeeded()
+        updateConstraints(for: child)
     }
     
     /**

     */
    public class func centerHorizontally(parent: UIView, child: UIView, offset: CGFloat = 0) {
        prepareForConstraint(parent, child: child)
        
        parent.addConstraint(NSLayoutConstraint(item: child, attribute: .centerX, relatedBy: .equal, toItem: parent, attribute: .centerX, multiplier: 1, constant: offset))
        
        child.updateConstraints()
        child.setNeedsLayout()
        child.layoutIfNeeded()
    }
    
    /**

    public class func width(parent: UIView, child: UIView, width: CGFloat = 0) {
        prepareForConstraint(parent, child: child)
        parent.addConstraint(NSLayoutConstraint(item: child, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .width, multiplier: 1, constant: width))
        updateConstraints(for: child)
    }
    
    /**
