{"action":"created","issue":{"url":"https://api.github.com/repos/SnapKit/Masonry/issues/479","repository_url":"https://api.github.com/repos/SnapKit/Masonry","labels_url":"https://api.github.com/repos/SnapKit/Masonry/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/SnapKit/Masonry/issues/479/comments","events_url":"https://api.github.com/repos/SnapKit/Masonry/issues/479/events","html_url":"https://github.com/SnapKit/Masonry/issues/479","id":267938423,"number":479,"title":"width怎么往某一方向展开","user":{"login":"OCer","id":13308894,"avatar_url":"https://avatars3.githubusercontent.com/u/13308894?v=4","gravatar_id":"","url":"https://api.github.com/users/OCer","html_url":"https://github.com/OCer","followers_url":"https://api.github.com/users/OCer/followers","following_url":"https://api.github.com/users/OCer/following{/other_user}","gists_url":"https://api.github.com/users/OCer/gists{/gist_id}","starred_url":"https://api.github.com/users/OCer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCer/subscriptions","organizations_url":"https://api.github.com/users/OCer/orgs","repos_url":"https://api.github.com/users/OCer/repos","events_url":"https://api.github.com/users/OCer/events{/privacy}","received_events_url":"https://api.github.com/users/OCer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-24T08:19:04Z","updated_at":"2018-04-16T15:03:15Z","closed_at":null,"author_association":"NONE","body":"### New Issue Checklist\r\n\r\n🚫 If this template is not filled out your issue **will** be closed with no comment. 🚫\r\n\r\n* [ √] I have looked at the [Documentation](https://github.com/SnapKit/Masonry/blob/master/README.md)\r\n* [ √] I have filled out this issue template.\r\n\r\n### Issue Info\r\n\r\n Info                    | Value                               |\r\n-------------------------|-------------------------------------|\r\n Platform                | ios\r\n Platform Version        | 10.0\r\n Masonry Version         |  1.0\r\n Integration Method      | manually\r\n \r\n\r\n### Issue Description\r\n\r\n我用mansory做动画，很简单，就改变宽度\r\n[self mas_updateConstraints:^(MASConstraintMaker *make) {\r\n            [make width].mas_equalTo(BLSelectableButtonWidth * self.items.count);\r\n        }];\r\n\r\n但是，这个动画并不理想，我想要的是x不变，width往某一方向展开。\r\n但事实上是，width在中心点同时往2边展开，这就导致了在做动画的时候，x出现偏移的视觉效果（因为约束的关系，事实上在做动画前width已经确定了，而width是2边展开的，为了x不变，所以view在调整x）。"},"comment":{"url":"https://api.github.com/repos/SnapKit/Masonry/issues/comments/381632968","html_url":"https://github.com/SnapKit/Masonry/issues/479#issuecomment-381632968","issue_url":"https://api.github.com/repos/SnapKit/Masonry/issues/479","id":381632968,"user":{"login":"zwind007","id":11417802,"avatar_url":"https://avatars0.githubusercontent.com/u/11417802?v=4","gravatar_id":"","url":"https://api.github.com/users/zwind007","html_url":"https://github.com/zwind007","followers_url":"https://api.github.com/users/zwind007/followers","following_url":"https://api.github.com/users/zwind007/following{/other_user}","gists_url":"https://api.github.com/users/zwind007/gists{/gist_id}","starred_url":"https://api.github.com/users/zwind007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwind007/subscriptions","organizations_url":"https://api.github.com/users/zwind007/orgs","repos_url":"https://api.github.com/users/zwind007/repos","events_url":"https://api.github.com/users/zwind007/events{/privacy}","received_events_url":"https://api.github.com/users/zwind007/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T15:03:15Z","updated_at":"2018-04-16T15:03:15Z","author_association":"NONE","body":"I have came across the same problem."}}
{"actor":{"display_login":"zwind007"}}