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

Usage outside the ViewOverflow area #14

Open
xiaweiss opened this issue May 8, 2018 · 1 comment
Open

Usage outside the ViewOverflow area #14

xiaweiss opened this issue May 8, 2018 · 1 comment
Labels
question Further information is requested

Comments

@xiaweiss
Copy link

xiaweiss commented May 8, 2018

normal Useage
image

<View style={{height: 200, backgroundColor: 'white'}}>
  <ViewOverflow style={{width: 200, height: 100, backgroundColor: 'pink'}}>
    <View style={{width: 100, height: 50, position: 'absolute', left: 100, bottom: -25, backgroundColor: 'yellow'}}>
        <View style={{backgroundColor: 'skyblue', height: '100%'}} />
    </View>
  </ViewOverflow>
</View>

let we set outside the ViewOverflow area
bottom: -25 change to bottom: -50
image

to fixed it, we can replace View with ViewOverflow

<View style={{height: 200, backgroundColor: 'white'}}>
  <ViewOverflow style={{width: 200, height: 100, backgroundColor: 'pink'}}>
    <ViewOverflow style={{width: 100, height: 50, position: 'absolute', left: 100, bottom: -50, backgroundColor: 'yellow'}}>
        <View style={{backgroundColor: 'skyblue', height: '100%'}} />
    </ViewOverflow>
  </ViewOverflow>
</View>

now we can see it
image

So,Usage outside the ViewOverflow area seems like:

<ViewOverflow>
    <ViewOverflow style={styles.absolute}>
        <ComponentContent />
    <ViewOverflow>
</ViewOverflow>
@JCMais
Copy link

JCMais commented May 8, 2018

Every View with overflowing area must have as parent another ViewOverflow component.

@sibelius sibelius added the question Further information is requested label May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants