{"action":"created","issue":{"url":"https://api.github.com/repos/SnapKit/Masonry/issues/281","labels_url":"https://api.github.com/repos/SnapKit/Masonry/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/SnapKit/Masonry/issues/281/comments","events_url":"https://api.github.com/repos/SnapKit/Masonry/issues/281/events","html_url":"https://github.com/SnapKit/Masonry/pull/281","id":118678959,"number":281,"title":"Added edgesWithoutTop, edgesWithoutLeft, edgesWithoutRight, edgesWithoutBottom constraints","user":{"login":"k06a","id":702124,"avatar_url":"https://avatars.githubusercontent.com/u/702124?v=3","gravatar_id":"","url":"https://api.github.com/users/k06a","html_url":"https://github.com/k06a","followers_url":"https://api.github.com/users/k06a/followers","following_url":"https://api.github.com/users/k06a/following{/other_user}","gists_url":"https://api.github.com/users/k06a/gists{/gist_id}","starred_url":"https://api.github.com/users/k06a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k06a/subscriptions","organizations_url":"https://api.github.com/users/k06a/orgs","repos_url":"https://api.github.com/users/k06a/repos","events_url":"https://api.github.com/users/k06a/events{/privacy}","received_events_url":"https://api.github.com/users/k06a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T18:55:16Z","updated_at":"2015-11-24T19:08:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SnapKit/Masonry/pulls/281","html_url":"https://github.com/SnapKit/Masonry/pull/281","diff_url":"https://github.com/SnapKit/Masonry/pull/281.diff","patch_url":"https://github.com/SnapKit/Masonry/pull/281.patch"},"body":"I had a lot of use cases when I need to setup 3 of 4 edges to superview.\r\n\r\nMade to replace this:\r\n```\r\n[topView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n    make.top.and.leading.mas_equalTo(20);\r\n    make.trailing.mas_equal(-20);\r\n}];\r\n[bottomView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n    make.leading.mas_equalTo(20);\r\n    make.bottom.and.trailing.mas_equalTo(-20);\r\n    make.top.equalTo(topView.mas_bottom).with.offset(20);\r\n}];\r\n```\r\nwith this:\r\n```\r\n[topView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n    make.edgesWithoutBottom.mas_equalTo(UIEdgeInsetsMake(20,20,20,20));\r\n}];\r\n[bottomView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n    make.edgesWithoutTop.mas_equalTo(UIEdgeInsetsMake(20,20,20,20));\r\n    make.top.equalTo(topView.mas_bottom).with.offset(20);\r\n}];\r\n```"},"comment":{"url":"https://api.github.com/repos/SnapKit/Masonry/issues/comments/159375244","html_url":"https://github.com/SnapKit/Masonry/pull/281#issuecomment-159375244","issue_url":"https://api.github.com/repos/SnapKit/Masonry/issues/281","id":159375244,"user":{"login":"cloudkite","id":598870,"avatar_url":"https://avatars.githubusercontent.com/u/598870?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudkite","html_url":"https://github.com/cloudkite","followers_url":"https://api.github.com/users/cloudkite/followers","following_url":"https://api.github.com/users/cloudkite/following{/other_user}","gists_url":"https://api.github.com/users/cloudkite/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudkite/subscriptions","organizations_url":"https://api.github.com/users/cloudkite/orgs","repos_url":"https://api.github.com/users/cloudkite/repos","events_url":"https://api.github.com/users/cloudkite/events{/privacy}","received_events_url":"https://api.github.com/users/cloudkite/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T19:08:19Z","updated_at":"2015-11-24T19:08:19Z","body":"hi @k06a :)\r\n\r\nNot sure if you are aware but you can pass UIEdgeInsets to when using the `make.left.and.right` chaining.  This means you can achieve the same using the following\r\n\r\n```\r\n[topView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n    make.top.left.right.mas_equalTo(UIEdgeInsetsMake(20,20,20,20));\r\n}];\r\n[bottomView mas_makeConstraints:^(MASConstraintMaker *make) {\r\n    make.left.right.bottom.mas_equalTo(UIEdgeInsetsMake(20,20,20,20));\r\n    make.top.equalTo(topView.mas_bottom).with.offset(20);\r\n}];\r\n```"}}