payload: {"action":"created","issue":{"url":"https://api.github.com/repos/youngsoft/MyLinearLayout/issues/85","repository_url":"https://api.github.com/repos/youngsoft/MyLinearLayout","labels_url":"https://api.github.com/repos/youngsoft/MyLinearLayout/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/youngsoft/MyLinearLayout/issues/85/comments","events_url":"https://api.github.com/repos/youngsoft/MyLinearLayout/issues/85/events","html_url":"https://github.com/youngsoft/MyLinearLayout/issues/85","id":433593473,"node_id":"MDU6SXNzdWU0MzM1OTM0NzM=","number":85,"title":"刷新数据后 scrollView的contentsize不对","user":{"login":"Whaiyan","id":22021373,"node_id":"MDQ6VXNlcjIyMDIxMzcz","avatar_url":"https://avatars3.githubusercontent.com/u/22021373?v=4","gravatar_id":"","url":"https://api.github.com/users/Whaiyan","html_url":"https://github.com/Whaiyan","followers_url":"https://api.github.com/users/Whaiyan/followers","following_url":"https://api.github.com/users/Whaiyan/following{/other_user}","gists_url":"https://api.github.com/users/Whaiyan/gists{/gist_id}","starred_url":"https://api.github.com/users/Whaiyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Whaiyan/subscriptions","organizations_url":"https://api.github.com/users/Whaiyan/orgs","repos_url":"https://api.github.com/users/Whaiyan/repos","events_url":"https://api.github.com/users/Whaiyan/events{/privacy}","received_events_url":"https://api.github.com/users/Whaiyan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-04-16T05:46:12Z","updated_at":"2019-04-16T06:33:34Z","closed_at":null,"author_association":"NONE","body":"`    if(contentLayout!=nil){\r\n        [contentLayout removeAllSubviews];\r\n        contentLayout=nil;\r\n    }\r\n    contentLayout = [MyLinearLayout linearLayoutWithOrientation:MyOrientation_Vert];\r\n    contentLayout.padding = UIEdgeInsetsMake(0, 0, 10, 0); //设置布局内的子视图离自己的边距.\r\n    contentLayout.myHorzMargin = 0;                          //同时指定左右边距为0表示宽度和父视图一样宽\r\n    contentLayout.heightSize.lBound(scrollView.heightSize, 10, 1); //高度虽然是wrapContentHeight的。但是最小的高度不能低于父视图的高度加10.\r\n   \r\n    [scrollView addSubview:contentLayout];`\r\n由于添加的都是单个view 所以是先移除再添加，但是刷新完数据后 scrollView的contentsize就变成了只比界面高10 添加的内容也添加好了 就contentsize有问题"},"comment":{"url":"https://api.github.com/repos/youngsoft/MyLinearLayout/issues/comments/483529687","html_url":"https://github.com/youngsoft/MyLinearLayout/issues/85#issuecomment-483529687","issue_url":"https://api.github.com/repos/youngsoft/MyLinearLayout/issues/85","id":483529687,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MzUyOTY4Nw==","user":{"login":"youngsoft","id":6257800,"node_id":"MDQ6VXNlcjYyNTc4MDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6257800?v=4","gravatar_id":"","url":"https://api.github.com/users/youngsoft","html_url":"https://github.com/youngsoft","followers_url":"https://api.github.com/users/youngsoft/followers","following_url":"https://api.github.com/users/youngsoft/following{/other_user}","gists_url":"https://api.github.com/users/youngsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/youngsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youngsoft/subscriptions","organizations_url":"https://api.github.com/users/youngsoft/orgs","repos_url":"https://api.github.com/users/youngsoft/repos","events_url":"https://api.github.com/users/youngsoft/events{/privacy}","received_events_url":"https://api.github.com/users/youngsoft/received_events","type":"User","site_admin":false},"created_at":"2019-04-16T06:33:34Z","updated_at":"2019-04-16T06:33:34Z","author_association":"OWNER","body":"不好意思，请再试一次。\n\n> 在 2019年4月16日，下午2:24，Whaiyan <notifications@github.com> 写道：\n> \n> 群满员了啊 \n> \n> \n> ------------------ 原始邮件 ------------------ \n> 发件人: \"欧阳大哥2013\"<notifications@github.com>; \n> 发送时间: 2019年4月16日(星期二) 下午2:17 \n> 收件人: \"youngsoft/MyLinearLayout\"<MyLinearLayout@noreply.github.com>; \n> 抄送: \"遥遥浅浅\"<1352461828@qq.com>; \"Author\"<author@noreply.github.com>; \n> 主题: Re: [youngsoft/MyLinearLayout] 刷新数据后 scrollView的contentsize不对 (#85) \n> \n> \n> \n> \n> 没有明白你要表达的意思。不过从上面的布局约束来看是表示contentLayout的高度是包裹的(由子视图的高度决定自身的高度)但是最小高度是scrollview视图的高度+10。一般情况下将布局视图加入到scrollView时系统在完成布局后调整scrollView的contentSize。这样contentSize的高度值就等于contentLayout的高度值。如果你愿意你可以加QQ群：178573773 来具体讨论你问题的细节。 \n> \n> — \n> You are receiving this because you authored the thread. \n> Reply to this email directly, view it on GitHub, or mute the thread.\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub <https://github.com/youngsoft/MyLinearLayout/issues/85#issuecomment-483527602>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AF98iGFJDmt4Rna0nMljAvHkwsyVVNH9ks5vhWyegaJpZM4cxZ7P>.\n> \n\n"}}
other: {"actor":{"display_login":"youngsoft"}}