Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List miss line in certain circumstances #157

Closed
gengjiawen opened this issue Jan 4, 2018 · 4 comments
Closed

List miss line in certain circumstances #157

gengjiawen opened this issue Jan 4, 2018 · 4 comments
Assignees

Comments

@gengjiawen
Copy link

Version

2.1.3

Environment

react-native 0.51.0

Reproduction link

https://github.com/gengjiawen/AntDesignBug

Steps to reproduce

for more detail see the repo

  render() {
    const cmps = [
      <Item key="cwd" arrow="horizontal" onClick={() => console.log('2')}>忘记密码 </Item>,
      <Item key="heihei" arrow="horizontal" onClick={() => console.log('3')}>修改密码 </Item>
    ]

    return (
      <View style={styles.container}>

        <List>
          <Item arrow="horizontal" onClick={() => console.log('1')}>收支明细</Item>
        </List>

        <View style={{height: 10}} />

        <List>
          <Item arrow="horizontal" onClick={() => console.log('1')}>提现账户 </Item>
          {cmps.map(comp => comp)}
        </List>
      </View>
    );
  }

What is expected?

between item has line

What is actually happening?

lost some line.

If previous has a single kid, it will result in the second list miss some line

<List>
      <Item arrow="horizontal" onClick={() => console.log('1')}>提现账户 </Item>
</List>

image

@gengjiawen
Copy link
Author

gengjiawen commented Jan 4, 2018

Actually middle view height to 20, the line appeared again.

<View style={{height: 20}} />

@gengjiawen
Copy link
Author

@paranoidjk Any plan to investigate this ?

@paranoidjk paranoidjk self-assigned this Mar 19, 2018
@warmhug
Copy link
Contributor

warmhug commented May 24, 2018

The issue of view height ? @paranoidjk any solution to this problem?

@warmhug
Copy link
Contributor

warmhug commented May 29, 2018

@warmhug warmhug closed this as completed May 29, 2018
@BANG88 BANG88 transferred this issue from ant-design/ant-design-mobile Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants