Ant-design-mobile: ListView下拉刷新, 内容被遮盖了

Created on 23 Oct 2018  ·  9Comments  ·  Source: ant-design/ant-design-mobile

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.4

Environment

window10, chorme last

Reproduction link

https://codepen.io/xoptimal/pen/vVzpdj

Steps to reproduce

<ListView
        ref={this.rcv}
        pullToRefresh={<PullToRefresh refreshing={refreshing} onRefresh={this.onRefresh.bind(this)} />}
        dataSource={ds.cloneWithRows(list)}
        renderBodyComponent={() => <div>{this.props.children}</div>}
        renderRow={this.renderRow}
        style={{ height, overflow: 'auto' }}
        pageSize={10}
        initialListSize={20}
        onEndReachedThreshold={10}
        scrollRenderAheadDistance={500} />

What is expected?

ListView, 在增加下拉刷新后, 内容没有满屏的情况下, 下拉刷新, 内容显示完全(ITEM没有遮盖)

What is actually happening?

ListView, 在增加下拉刷新后, 内容没有满屏的情况下, 下拉刷新, 内容会显示不全 ~ 遮盖了内容!

Most helpful comment

配置 initialListSize 能解决。

为了让这个答案醒目点,我只好给自己点一点表情了。

All 9 comments

+1

+1

配置 initialListSize 能解决。

为了让这个答案醒目点,我只好给自己点一点表情了。

+1

+1

配置 initialListSize 能解决。

好像不行吧

我也遇到了,这个没人解答吗?

how can i reslove this questions?

+1

Was this page helpful?
0 / 5 - 0 ratings