You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/01/03 05:54:29 UTC

[GitHub] or0fun opened a new issue #1989: Android: the return of method "getRealView" in WXScroller should be 'mRealView'

or0fun opened a new issue #1989: Android:  the return of method "getRealView" in WXScroller should be 'mRealView'
URL: https://github.com/apache/incubator-weex/issues/1989
 
 
   <!--
   Thanks for using Weex. Please follow the [Bug Report Guidelines](http://weex-project.io/bug-report-guidelines.html) to file issues. A good bug report should include the following information:
   -->
   
   <!-- Requirements: please go through this checklist before opening a new issue -->
     - [ ] Review the documentation: https://weex.apache.org/index.html
     - [ ] Search for existing issues: https://github.com/apache/incubator-weex/issues
     - [ ] Use the latest Weex release: https://github.com/apache/incubator-weex/releases
   
   ## Describe the bug
   The return of method "getRealView" in WXScroller should be 'mRealView', which is mScrollerView now.
   When I reduce the children of scroller view,  it has no effect now.
   
   
   ## To Reproduce
   ```vue
   <template>
     <div class="wrapper">
       <scroller class="scroller" v-for="(row) in rows" scroll-direction="horizontal">
         <text>{{row.length}}</text>
         <div v-for="(item, index) in row" class="item">
           <text>{{index + item.name}}</text>
         </div>
       </scroller>
       <div @click="changeData" class="button">
         <text>点击</text>
       </div>
     </div>
   </template>
   ```
   I reduces item of row in function 'changeData', the length of row changed, but the number of children which displayed didn't change.
   
   ## Environment
   * Device:  Vivo X9
   * OS: Android
   * Version  7.1.2
   * Build from source  no
   
   ## Expected behavior
   The number of children in Scroller view should be reduces on the screen when I reduces the number of items.
   
   ## Screenshots
   
   
   ## Additional context
   Add any other context about the problem here.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services