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

Margin affects padding inside button (0.54.2) sdk 26 #18911

Closed
nikolal opened this issue Apr 18, 2018 · 25 comments
Closed

Margin affects padding inside button (0.54.2) sdk 26 #18911

nikolal opened this issue Apr 18, 2018 · 25 comments
Labels
Bug Platform: Android Android applications.

Comments

@nikolal
Copy link

nikolal commented Apr 18, 2018

Environment:
OS: OS X El Capitan 10.11.6
Node: 8.4.0
Yarn: 1.3.2
npm: 4.6.1
Watchman: 4.7.0
Xcode: Xcode 8.2.1 Build version 8C1002
Android Studio: 2.2 AI-145.3537739

Packages: (wanted => installed)
react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => 0.54.2

Steps to Reproduce
1 - uncomment marginTop

Expected Behavior

  • Text inside button should be centralized

Actual Behavior

  • Text is moved on top of the button

Reproducible Demo
https://snack.expo.io/SJhhndX3G

This is happening after updating to React native 0.54.2

@nikolal
Copy link
Author

nikolal commented Apr 18, 2018

I created issue on expo board first. They pointed to several commits in React Native repo.

expo/expo#1667 (comment)

@FlaviooLima
Copy link

FlaviooLima commented May 17, 2018

Only Happens with margin declared with a percentage and it stills happens in react-native v0.55.3
#19164

@stale
Copy link

stale bot commented Sep 10, 2018

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 10, 2018
@artdent
Copy link
Contributor

artdent commented Sep 13, 2018

I just verified that this issue is still present in v0.57.0.

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Sep 13, 2018
@nikolal
Copy link
Author

nikolal commented Sep 24, 2018

I also still have this issue.

@brettdh
Copy link

brettdh commented Oct 31, 2018

This is not just an Android issue; as the erroneously-closed #19164 indicates. I'm experiencing it as well on iOS.

@brettdh
Copy link

brettdh commented Oct 31, 2018

This only appears to apply for percentage margins, not integer margins:
https://snack.expo.io/Byj4wSvhQ

@artdent
Copy link
Contributor

artdent commented Mar 19, 2019

I was still able to reproduce this on react-native 0.59.1.

@cpojer
Copy link
Contributor

cpojer commented May 9, 2019

Is there somebody who'd like to send a PR with a fix for this issue?

@stale
Copy link

stale bot commented Aug 7, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 7, 2019
@brettdh
Copy link

brettdh commented Aug 7, 2019

This is still an issue, as the Snack I linked above demonstrates.

EDIT: forgot to update Expo SDK version (and thus React Native version). Retesting...

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 7, 2019
@brettdh
Copy link

brettdh commented Aug 7, 2019

Just tested it again with Expo SDK 32 and 34. Same (still broken) behavior in both (tested iOS).

Interestingly, the behavior is correct in expo-web.

@garronej
Copy link

Still broken

@jimpala
Copy link

jimpala commented Oct 24, 2019

Still broken!

@FlaviooLima
Copy link

I can't understand why this is still in the same state without a single higher up reckon this issue or give some info about it!
:/

@stale
Copy link

stale bot commented Jan 27, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 27, 2020
@garronej
Copy link

Is it fixed now?

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 29, 2020
@FlaviooLima
Copy link

@garronej Version 0.61.5 and still happening

@stale
Copy link

stale bot commented May 6, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label May 6, 2020
@garronej
Copy link

garronej commented May 6, 2020

@Stale It hasn't been fixed, please leave it open.

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label May 6, 2020
@stale
Copy link

stale bot commented Aug 8, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 8, 2020
@jimpala
Copy link

jimpala commented Aug 8, 2020

@Stale very much not fixed 😘

Sent with GitHawk

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 8, 2020
@stale
Copy link

stale bot commented Dec 25, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 25, 2020
@artdent
Copy link
Contributor

artdent commented Dec 27, 2020

I think this is fixed in react v0.62. You can verify online that the snack in the original bug report is broken in Expo v37 (react-native 0.61) and fixed in Expo v38 (react-native 0.62). (You have to test in iOS or Android mode, not web mode.) Skimming the changelog, I think that 1d683fa was the fix.

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 27, 2020
@dulmandakh
Copy link
Contributor

Closing this because it's been fixed in 0.62 according to @artdent. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Platform: Android Android applications.
Projects
None yet
Development

No branches or pull requests

10 participants