{"action":"opened","issue":{"url":"https://api.github.com/repos/nicklockwood/iCarousel/issues/647","labels_url":"https://api.github.com/repos/nicklockwood/iCarousel/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/nicklockwood/iCarousel/issues/647/comments","events_url":"https://api.github.com/repos/nicklockwood/iCarousel/issues/647/events","html_url":"https://github.com/nicklockwood/iCarousel/issues/647","id":97882771,"number":647,"title":"UIScrollView inside iCarousel not scrolling","user":{"login":"Ahmar","id":1234264,"avatar_url":"https://avatars.githubusercontent.com/u/1234264?v=3","gravatar_id":"","url":"https://api.github.com/users/Ahmar","html_url":"https://github.com/Ahmar","followers_url":"https://api.github.com/users/Ahmar/followers","following_url":"https://api.github.com/users/Ahmar/following{/other_user}","gists_url":"https://api.github.com/users/Ahmar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ahmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ahmar/subscriptions","organizations_url":"https://api.github.com/users/Ahmar/orgs","repos_url":"https://api.github.com/users/Ahmar/repos","events_url":"https://api.github.com/users/Ahmar/events{/privacy}","received_events_url":"https://api.github.com/users/Ahmar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T08:03:43Z","updated_at":"2015-07-29T08:03:43Z","closed_at":null,"body":"I am using a scrollview inside iCarousel. and I have added a label inside that UIScrollView. Now, I have set the number of lines of that label to zero. so that the text is auto adjusted. Now, the label is working  fine and it re-adjust itself. But the UIScrollView is not scrolling after the labelheight-40 px or something. which seems like the content size is hard coded.\r\n\r\nHere is my code plz help:\r\n\r\nNSString *str =  @\"A freshman on campus discovers that the only way to be admitted into the sorority of her dreams is to seduce a nerdy introverted guy and film it. When the sorority \\\"prank\\\" goes viral, the boy is discovered dead from apparent suicide, but his sister does not buy it. She goes under cover to expose the sororities\\U2019 hidden secrets.\";\r\n\r\n// just hard coded  the str\r\n\r\n        if ([str length]) {\r\n            CGSize maximumLabelSize = CGSizeMake(self.view.bounds.size.width-16-25, FLT_MAX);\r\n            if (IS_IPAD) {\r\n                maximumLabelSize = CGSizeMake(self.view.bounds.size.width-256*2-25, FLT_MAX);\r\n            }\r\n            \r\n            CGSize titleSize = [str sizeWithFont:font constrainedToSize:maximumLabelSize lineBreakMode:NSLineBreakByWordWrapping];\r\n            estH = titleSize.height;\r\n            item.synopsisLblHeight.constant = estH+20.0;\r\n        }\r\n        else {\r\n            item.synopsisLblHeight.constant = 0;\r\n        }\r\n\r\n        if (IS_IPAD) {\r\n            item.synopsisLblWidth.constant = self.view.bounds.size.width-256*2-25;\r\n        }\r\n        \r\n        \r\n        item.synopsisLbl.text = str;\r\n        \r\n        \r\n        // Assuming your label has numberOfLines = 0, and you want to scroll vertical\r\n        CGSize maxSize = CGSizeMake(item.synopsisLblWidth.constant, CGFLOAT_MAX);\r\n        CGSize labelSize = [item.synopsisLbl sizeThatFits:maxSize];\r\n        item.scroller.contentSize = CGSizeMake(item.synopsisLblWidth.constant+item.synopsisLbl.frame.origin.y, item.synopsisLbl.frame.origin.y+labelSize.height);\r\n\r\n        \r\n"}}