Merge pull request #111 from julien-c/patch-1

If you want padding those should be negative
This commit is contained in:
Robert Payne 2015-06-11 09:08:50 +12:00
commit 8f2cf170fe
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ superview.addSubview(box)
box.snp_makeConstraints { (make) -> Void in box.snp_makeConstraints { (make) -> Void in
make.top.equalTo(superview).offset(20) make.top.equalTo(superview).offset(20)
make.left.equalTo(superview).offset(20) make.left.equalTo(superview).offset(20)
make.bottom.equalTo(superview).offset(20) make.bottom.equalTo(superview).offset(-20)
make.right.equalTo(superview).offset(20) make.right.equalTo(superview).offset(-20)
} }
``` ```