{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/856","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/856/comments","events_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/856/events","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/856","id":117338309,"number":856,"title":"How get size after calculate LayoutSpec","user":{"login":"bimawa","id":1393809,"avatar_url":"https://avatars.githubusercontent.com/u/1393809?v=3","gravatar_id":"","url":"https://api.github.com/users/bimawa","html_url":"https://github.com/bimawa","followers_url":"https://api.github.com/users/bimawa/followers","following_url":"https://api.github.com/users/bimawa/following{/other_user}","gists_url":"https://api.github.com/users/bimawa/gists{/gist_id}","starred_url":"https://api.github.com/users/bimawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bimawa/subscriptions","organizations_url":"https://api.github.com/users/bimawa/orgs","repos_url":"https://api.github.com/users/bimawa/repos","events_url":"https://api.github.com/users/bimawa/events{/privacy}","received_events_url":"https://api.github.com/users/bimawa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T11:48:46Z","updated_at":"2015-11-17T15:49:39Z","closed_at":"2015-11-17T15:49:39Z","body":"Guys i have a CollectionView and Header Section with imageNode and two another nodes in this header, and header height must depends on imageNode.  In dataSource I'm override method with fake size:\r\n\r\n```\r\n- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section\r\n{\r\n    return CGSizeMake([UIScreen mainScreen].bounds.size.width, 1000);\r\n}\r\n```\r\nafter that it called  `- (ASLayoutSpec *)layoutSpecThatFits:(ASSizeRange)constrainedSize` for calculate subviews, and now i must redraw headerview with realy size fro crop redundant space. How i can do it? With LayoutSpec`s"}}