{"action":"created","issue":{"url":"https://api.github.com/repos/slodge/Cirrious.FluentLayout/issues/20","labels_url":"https://api.github.com/repos/slodge/Cirrious.FluentLayout/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/slodge/Cirrious.FluentLayout/issues/20/comments","events_url":"https://api.github.com/repos/slodge/Cirrious.FluentLayout/issues/20/events","html_url":"https://github.com/slodge/Cirrious.FluentLayout/issues/20","id":81053049,"number":20,"title":"Remove parentView is UIScrollView from VerticalStackPanelConstraints","user":{"login":"munkii","id":827342,"avatar_url":"https://avatars.githubusercontent.com/u/827342?v=3","gravatar_id":"","url":"https://api.github.com/users/munkii","html_url":"https://github.com/munkii","followers_url":"https://api.github.com/users/munkii/followers","following_url":"https://api.github.com/users/munkii/following{/other_user}","gists_url":"https://api.github.com/users/munkii/gists{/gist_id}","starred_url":"https://api.github.com/users/munkii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munkii/subscriptions","organizations_url":"https://api.github.com/users/munkii/orgs","repos_url":"https://api.github.com/users/munkii/repos","events_url":"https://api.github.com/users/munkii/events{/privacy}","received_events_url":"https://api.github.com/users/munkii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-26T17:09:53Z","updated_at":"2015-07-03T10:12:13Z","closed_at":null,"body":"I have had some issues recently with AutoLayout of cells with variable height in Tables. The issues are outlined in this SO question, https://stackoverflow.com/questions/30099363/uilabel-not-wrapping-in-uitableview-until-device-rotate-ios8\r\n\r\nOne of my key takeaways from this was ensuring that i gave AutoLayout enough information to do its job of saying how tall each cell should be. The info that I was forgetting was telling the bottom row of UI to hug or \"dock\" to the BottomOf the container. You can see the changes made by SharpMobileCode to my GitHub Repro https://github.com/munkii/TableCellResizeIssue/blob/c54a21f322b6ede26dd92346fab4364c1a29b1da/TableCellResizeIssue/Controls/CustomCells/CustomerItemCell.cs\r\n\r\nI am currently working with a custom control that vertically stacks a variable number of Labels based on binding to a List of strings. If use FluentLayout's VerticalStackPanelConstraints the labels layout (initially) but overflow into subsequent rows and after scrolling are then clipped.\r\n\r\nIf I remove the check that the container view is a UIScrollView  causing the last item in the \"stack\" to be constrained to the bottom, always, it works. \r\n\r\nI have updated by TableReSizeIssue repro to demonstrate the issue. Check out Lines 90-92, https://github.com/munkii/TableCellResizeIssue/blob/master/TableCellResizeIssue/Controls/StringStackPanel.cs#L90\r\n\r\nLayoutManually(), is just me laying out myself\r\nLayoutWithFluent(), is a copy of the code from GitHub but I have edited it to remove the UIScrollView check\r\n\r\nThere is also a version that just uses VerticalStackPanelConstraints to show what happens as is\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/slodge/Cirrious.FluentLayout/issues/comments/118305298","html_url":"https://github.com/slodge/Cirrious.FluentLayout/issues/20#issuecomment-118305298","issue_url":"https://api.github.com/repos/slodge/Cirrious.FluentLayout/issues/20","id":118305298,"user":{"login":"slodge","id":533662,"avatar_url":"https://avatars.githubusercontent.com/u/533662?v=3","gravatar_id":"","url":"https://api.github.com/users/slodge","html_url":"https://github.com/slodge","followers_url":"https://api.github.com/users/slodge/followers","following_url":"https://api.github.com/users/slodge/following{/other_user}","gists_url":"https://api.github.com/users/slodge/gists{/gist_id}","starred_url":"https://api.github.com/users/slodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slodge/subscriptions","organizations_url":"https://api.github.com/users/slodge/orgs","repos_url":"https://api.github.com/users/slodge/repos","events_url":"https://api.github.com/users/slodge/events{/privacy}","received_events_url":"https://api.github.com/users/slodge/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T10:12:13Z","updated_at":"2015-07-03T10:12:13Z","body":"oops - hit \"comment and close\" by mistake - fat fingers...."}}