You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "codefurture (JIRA)" <ji...@apache.org> on 2018/03/27 02:40:00 UTC

[jira] [Commented] (WEEX-248) slide中嵌套list,在小米手机上list滑动事件失效

    [ https://issues.apache.org/jira/browse/WEEX-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16414920#comment-16414920 ] 

codefurture commented on WEEX-248:
----------------------------------

is your list use recyclerview? give an height for your list 

> slide中嵌套list,在小米手机上list滑动事件失效
> -----------------------------
>
>                 Key: WEEX-248
>                 URL: https://issues.apache.org/jira/browse/WEEX-248
>             Project: Weex
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 0.18
>         Environment: 小米note、小米4  安卓7.1
>            Reporter: fudongrong
>            Assignee: zhengshihan
>            Priority: Blocker
>
> 当slide的每个项都是list时,slide第一个项中的list完全正常,但是切换到第二项时,该项中的List显示不完全,也不能向下滑动。华为手机没有该问题,猜测是小米手机上滑动事件冲突或者是封装的时候list高度没有重新计算,导致只显示了一页并且滑动不了。大致代码如下,其中myactivity 是我们自己封装的纵向list: 
>  
>   <slider class="brand-group" 
>                  :index="group_current" 
>                  :style="group_style" 
>                  infinite="false" 
>                  @change="groupChange" 
>          > 
>  
>                 <template v-if="i == 0"> 
>                      <myactivity :g_index="i" 
>                                  :cur_index="sidebar_current" 
>                                  :list_style="list_style" 
>                                  :ref="'gp-' + i" 
>                                  @refreshSidebar="refreshSidebar" 
>                      /> 
>                  </template> 
>  
>    
>  
>  </slider>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)