{"action":"created","issue":{"url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/103","labels_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/103/comments","events_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/103/events","html_url":"https://github.com/chiahsien/CHTCollectionViewWaterfallLayout/issues/103","id":94456725,"number":103,"title":"sizeForItemAtIndexPath problem","user":{"login":"y0unghe","id":1100727,"avatar_url":"https://avatars.githubusercontent.com/u/1100727?v=3","gravatar_id":"","url":"https://api.github.com/users/y0unghe","html_url":"https://github.com/y0unghe","followers_url":"https://api.github.com/users/y0unghe/followers","following_url":"https://api.github.com/users/y0unghe/following{/other_user}","gists_url":"https://api.github.com/users/y0unghe/gists{/gist_id}","starred_url":"https://api.github.com/users/y0unghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y0unghe/subscriptions","organizations_url":"https://api.github.com/users/y0unghe/orgs","repos_url":"https://api.github.com/users/y0unghe/repos","events_url":"https://api.github.com/users/y0unghe/events{/privacy}","received_events_url":"https://api.github.com/users/y0unghe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-11T09:38:42Z","updated_at":"2015-11-11T08:08:23Z","closed_at":null,"body":"I implemented the CHTCollectionViewDelegateWaterfallLayout protocol\r\n\r\n```\r\n- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {\r\n    Topic *topic = topics[indexPath.row];\r\n    NSLog(@\"%@ height: %@\", topic.topicTitle, @(size.height));\r\n    return size;\r\n}\r\n```\r\n\r\nBut when I launch the simulator, the topic according to the actual cell's height in collection view is not the size which I implemented in the protocol. \r\nThe NSLog outputs: \r\n\r\n```\r\ntitle: teipete/PSTCollectionView height: 89.404\r\ntitle: Jamztang/CSStickyHeaderFlowLayout height: 106.106\r\n```\r\n\r\nBut in the simulator the cell's height for teipete/PSTCollectionView is 106.106, and the height for Jamztang/CSStickyHeaderFlowLayout is 89.404. \r\n\r\nIt seems both cells exchange its height. How is that possible? "},"comment":{"url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/comments/155699695","html_url":"https://github.com/chiahsien/CHTCollectionViewWaterfallLayout/issues/103#issuecomment-155699695","issue_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/103","id":155699695,"user":{"login":"shenyuan000","id":10875300,"avatar_url":"https://avatars.githubusercontent.com/u/10875300?v=3","gravatar_id":"","url":"https://api.github.com/users/shenyuan000","html_url":"https://github.com/shenyuan000","followers_url":"https://api.github.com/users/shenyuan000/followers","following_url":"https://api.github.com/users/shenyuan000/following{/other_user}","gists_url":"https://api.github.com/users/shenyuan000/gists{/gist_id}","starred_url":"https://api.github.com/users/shenyuan000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenyuan000/subscriptions","organizations_url":"https://api.github.com/users/shenyuan000/orgs","repos_url":"https://api.github.com/users/shenyuan000/repos","events_url":"https://api.github.com/users/shenyuan000/events{/privacy}","received_events_url":"https://api.github.com/users/shenyuan000/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T08:08:23Z","updated_at":"2015-11-11T08:08:23Z","body":"This problem has been solved yet I have encountered such a problem"}}