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

If padding is used in style, some text seems to be 'squeezed out' #52

Closed
ziniuguo opened this issue Jun 30, 2021 · 3 comments
Closed

If padding is used in style, some text seems to be 'squeezed out' #52

ziniuguo opened this issue Jun 30, 2021 · 3 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ziniuguo
Copy link

ziniuguo commented Jun 30, 2021

my code:

<ScrollView style={{paddingHorizontal: 30}}>
    /* some code*/
    {this.state.list.map((item, index) => (
        <BouncyCheckbox
            /* something */
            key={index}
            text={some very long text}
        />
    )}
</ScrollView>

If i write paddingHorizontal, the text will be squeezed out.

7LLTS I2E3$}XS)4~5NW1AS

How to solve this problem

Thanks in advance!

@ziniuguo
Copy link
Author

I added paddingRight: 30 (same value as the ScrollView one) in the style of BouncyCheckbox, it works. Although idk why.

@WrathChaos WrathChaos self-assigned this Jun 30, 2021
@WrathChaos WrathChaos added the bug Something isn't working label Jun 30, 2021
@WrathChaos
Copy link
Owner

Hello @ziniuguo
I've never used such a long text. I need to test it.

@WrathChaos
Copy link
Owner

This has been fixed by @seyedmostafahasani

You can try it out with 4.0.1 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants