[ https://issues.apache.org/jira/browse/WEEX-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16698476#comment-16698476 ]
ASF GitHub Bot commented on WEEX-657: ------------------------------------- blackteachinese opened a new pull request #1813: [WEEX-657][iOS] Add a feature to control the offset of list attach to… URL: https://github.com/apache/incubator-weex/pull/1813 … the bottom` I have add a '_isContentAttachBottom' attribute in WXListComponent to controll whether open this feature. The Weex Component can pass the ‘_isContentAttachBottom’ variable from js to native by 'initWithRef' and 'updateAttributes' function. The '_isContentAttachBottom' variable will be analysed to a bool type and cached in WXTableView object. When the WXTableView object is called the 'setFrame' function,if the '_isContentAttachBottom' variable is true , then the 'contentOffset' function of WXTableView object will be triggered to keep the content offset at the bottom.When the WXTableView object is running the transition animation, the 'setFrame' will be call every 16 msec . So when the animation is excuting,the content offset of list will be alaways attached to the bottom . feature: 657 First of all, thank you for your contribution! Please makes sure that these checkboxes are checked before submitting your PR, thank you! <!-- How to use github markdown? ### checkable example - [x] checked - [ ] not checked More github Markdown info to see https://guides.github.com/features/mastering-markdown/ --> CheckList: **if** *isBugFix* **:** * [ ] Make sure that you add at least one unit test for the bug which you had fixed. **elif** *isNewFeature* **:** * [ ] Update API docs for the component. * [ ] Update/Add demo to demonstrate new feature. * [ ] Update test scripts for the feature. * [ ] Add unit tests for the feature. <!-- (请在***提交***前删除这段描述) Notes: Weex will move into Apache Software Foundation (ASF) on Feb 24 2017. Our new GitHub repo is https://github.com/apache/incubator-weex After Feb 24 2017, we only accept pull requests from https://github.com/apache/incubator-weex Thank you for your support. ---- 注意:Weex 将于 2017-02-24 迁移至 Apache 基金会 届时我们会使用新的 GitHub 仓库:https://github.com/apache/incubator-weex 并在那里继续接受大家的 pull request。 更多详情请关注:https://github.com/weexteam/article/issues/130 感谢理解和支持 --> <!-- (请在***提交***前删除这段描述) It's ***RECOMMENDED*** to submit typo fix, new demo, tiny bugfix and large feature to `master` branch. See [Branch Strategy](https://github.com/alibaba/weex/blob/dev/CONTRIBUTING.md#branch-management) for more detail. ---- 错别字修改、新 demo、较小的 bugfix、甚至较大的功能都可以直接提到 `master` 分支; 查看完整的[分支策略 (英文)](https://github.com/alibaba/weex/blob/dev/CONTRIBUTING.md#branch-management)。 --> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > When the List component is shortened for Transition animation, the content > offset position of the List needs to be fixed at the bottom. > --------------------------------------------------------------------------------------------------------------------------------------- > > Key: WEEX-657 > URL: https://issues.apache.org/jira/browse/WEEX-657 > Project: Weex > Issue Type: Improvement > Components: iOS > Affects Versions: 0.19 > Environment: iOS > Reporter: hongwei > Assignee: XuYouyang > Priority: Major > Labels: ready-to-commit > Fix For: 0.19 > > Original Estimate: 48h > Remaining Estimate: 48h > > We have a message list business scenario, the List component will set the > length of the Height change in the Transition animation. At this time, the > content offset of the List needs to be kept at the bottom. The List component > does not currently have this capability. -- This message was sent by Atlassian JIRA (v7.6.3#76005)