{"action":"created","issue":{"url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/191","labels_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/191/comments","events_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/191/events","html_url":"https://github.com/dzenbot/DZNEmptyDataSet/issues/191","id":128638331,"number":191,"title":"Custom view stretched to full screen in 1.7.3","user":{"login":"colinhumber","id":104855,"avatar_url":"https://avatars.githubusercontent.com/u/104855?v=3","gravatar_id":"","url":"https://api.github.com/users/colinhumber","html_url":"https://github.com/colinhumber","followers_url":"https://api.github.com/users/colinhumber/followers","following_url":"https://api.github.com/users/colinhumber/following{/other_user}","gists_url":"https://api.github.com/users/colinhumber/gists{/gist_id}","starred_url":"https://api.github.com/users/colinhumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinhumber/subscriptions","organizations_url":"https://api.github.com/users/colinhumber/orgs","repos_url":"https://api.github.com/users/colinhumber/repos","events_url":"https://api.github.com/users/colinhumber/events{/privacy}","received_events_url":"https://api.github.com/users/colinhumber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-25T21:07:06Z","updated_at":"2016-01-30T21:28:57Z","closed_at":null,"body":"I think this might be related to #177 as well, but previous to the fix for #176 in commit 92452ea17a844706092187794b865d5c598fb4e1, my custom view was centered in the content view. Now, it is being stretched to the full size of the screen. The line of code that was added that seems to be causing this is on line 898.\r\n\r\n```ObjC\r\n[self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@\"V:|[contentView]|\" options:0 metrics:nil views:@{@\"contentView\": self.contentView}]];\r\n```\r\n\r\nI've attached some screenshots with the custom view highlighted to help. \r\n\r\nThis is how it used to look, and does look when I removed the line above.\r\n<img width=\"669\" alt=\"old\" src=\"https://cloud.githubusercontent.com/assets/104855/12564504/c1773282-c36c-11e5-84e9-1b16e2080350.png\">\r\n\r\nThis is how it looks now, with that line included.\r\n<img width=\"669\" alt=\"new\" src=\"https://cloud.githubusercontent.com/assets/104855/12564507/c4f9087c-c36c-11e5-833e-1fb2805b6685.png\">\r\n\r\nI don't want to just remove that line willy-nilly, so I'll just make a note of it here and hope this helps."},"comment":{"url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/comments/177307225","html_url":"https://github.com/dzenbot/DZNEmptyDataSet/issues/191#issuecomment-177307225","issue_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/191","id":177307225,"user":{"login":"dzenbot","id":590579,"avatar_url":"https://avatars.githubusercontent.com/u/590579?v=3","gravatar_id":"","url":"https://api.github.com/users/dzenbot","html_url":"https://github.com/dzenbot","followers_url":"https://api.github.com/users/dzenbot/followers","following_url":"https://api.github.com/users/dzenbot/following{/other_user}","gists_url":"https://api.github.com/users/dzenbot/gists{/gist_id}","starred_url":"https://api.github.com/users/dzenbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzenbot/subscriptions","organizations_url":"https://api.github.com/users/dzenbot/orgs","repos_url":"https://api.github.com/users/dzenbot/repos","events_url":"https://api.github.com/users/dzenbot/events{/privacy}","received_events_url":"https://api.github.com/users/dzenbot/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T21:28:57Z","updated_at":"2016-01-30T21:28:57Z","body":"Try overriding , to something like:\r\n```\r\n- (CGSize)intrinsicContentSize\r\n{\r\n    return CGSizeMake(UIViewNoIntrinsicMetric, UILayoutFittingCompressedSize);\r\n}\r\n```\r\n\r\nOr passing a custom height using `systemLayoutSizeFittingSize:`"}}