{"action":"created","issue":{"url":"https://api.github.com/repos/mikeswanson/JBSpacer/issues/1","labels_url":"https://api.github.com/repos/mikeswanson/JBSpacer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mikeswanson/JBSpacer/issues/1/comments","events_url":"https://api.github.com/repos/mikeswanson/JBSpacer/issues/1/events","html_url":"https://github.com/mikeswanson/JBSpacer/issues/1","id":61818163,"number":1,"title":"Spacing cropping last cell","user":{"login":"ppaulojr","id":1206478,"avatar_url":"https://avatars.githubusercontent.com/u/1206478?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaulojr","html_url":"https://github.com/ppaulojr","followers_url":"https://api.github.com/users/ppaulojr/followers","following_url":"https://api.github.com/users/ppaulojr/following{/other_user}","gists_url":"https://api.github.com/users/ppaulojr/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaulojr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaulojr/subscriptions","organizations_url":"https://api.github.com/users/ppaulojr/orgs","repos_url":"https://api.github.com/users/ppaulojr/repos","events_url":"https://api.github.com/users/ppaulojr/events{/privacy}","received_events_url":"https://api.github.com/users/ppaulojr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-15T14:14:04Z","updated_at":"2015-03-15T20:55:24Z","closed_at":"2015-03-15T20:55:24Z","body":"## Code:\r\n```\r\n    JBSpacerOption *option = [JBSpacerOption optionWithItemSize:90.0f\r\n                                                  minimumGutter:1.0f\r\n                                            gutterToMarginRatio:1.0f\r\n                                                  availableSize:self.view.frame.size.width\r\n                                       distributeExtraToMargins:YES];\r\n    JBSpacer *spacer = [JBSpacer spacerWithOption:option];\r\n\r\n    // use dispatch_after to see the effect of the spacer\r\n    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(10 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\r\n        [spacer applySpacingToCollectionViewFlowLayout:self.flowLayout];\r\n    });\r\n```\r\n\r\n## Result:\r\n![ios simulator screen shot 15 03 2015 10 50 19](https://cloud.githubusercontent.com/assets/1206478/6656307/375ca02a-cb04-11e4-8c87-a3bf141dfd0f.png)\r\n\r\n## Variable values\r\n```self.view.frame.size.width``` => ```320.0f```"},"comment":{"url":"https://api.github.com/repos/mikeswanson/JBSpacer/issues/comments/81235930","html_url":"https://github.com/mikeswanson/JBSpacer/issues/1#issuecomment-81235930","issue_url":"https://api.github.com/repos/mikeswanson/JBSpacer/issues/1","id":81235930,"user":{"login":"ppaulojr","id":1206478,"avatar_url":"https://avatars.githubusercontent.com/u/1206478?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaulojr","html_url":"https://github.com/ppaulojr","followers_url":"https://api.github.com/users/ppaulojr/followers","following_url":"https://api.github.com/users/ppaulojr/following{/other_user}","gists_url":"https://api.github.com/users/ppaulojr/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaulojr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaulojr/subscriptions","organizations_url":"https://api.github.com/users/ppaulojr/orgs","repos_url":"https://api.github.com/users/ppaulojr/repos","events_url":"https://api.github.com/users/ppaulojr/events{/privacy}","received_events_url":"https://api.github.com/users/ppaulojr/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T20:55:24Z","updated_at":"2015-03-15T20:55:24Z","body":"The problem was my collection view was not constrained by the parent view.\r\n\r\n"}}