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

[Android] Padding is cutting off the last word in a Button #51

Open
dmatteo opened this issue Oct 7, 2016 · 1 comment
Open

[Android] Padding is cutting off the last word in a Button #51

dmatteo opened this issue Oct 7, 2016 · 1 comment

Comments

@dmatteo
Copy link

dmatteo commented Oct 7, 2016

Hey James, I came across this weird behavior when using your awesome component and I thought I'd report it here.

This component will behave perfectly fine

<Button>
  One Two Three
</Button>

This instead will cut the last word off, regardless of how many words are in the button and the amount of padding.

<Button style={{padding: 1}}>
  One Two Three
</Button>

The "raw" TouchableOpacity doesn't seem to be affected, since both these works fine:

<TouchableOpacity>
  <Text style={{padding: 4}}>One Two Three</Text>
</TouchableOpacity>

<TouchableOpacity style={{padding: 4}}>
  <Text>One Two Three</Text>
</TouchableOpacity>

Let me know if I can help!

@dmatteo
Copy link
Author

dmatteo commented Oct 7, 2016

I should add that it works fine on my phone on Lollipop 5.0.2, while it cuts the last word off in my emulator, running Android 6 on API v23

@dmatteo dmatteo changed the title Padding is constantly cutting off the last word in a Button [Android] Padding is cutting off the last word in a Button Oct 7, 2016
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

1 participant