-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Fix crash caused by column block with padding having paragraph as a child #33782
Conversation
Size Change: 0 B Total Size: 1.08 MB ℹ️ View Unchanged
|
@antonis I think Gerardo is AFK, so I've added you as a reviewer as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @ceyhun 👍
I tested this on a Pixel 5 (Android 12) with the latest WordPress-Android
app from develop
running metro and using a JN site. I confirm that the crash was reproduced on gutenberg
trunk
and is fixed with the applied changes on this branch. The code changes also LGTM 🎉
Thanks @antonis 🙇 |
Description
Fixes wordpress-mobile/WordPress-Android#15016.
Column block has a new feature, where we can add paddings to a column block and it passes these to its child as
wrapperStyles
. These paddings can have units of%
as well aspx
,em
, etc. Since paragraph block on mobile doesn't yet support all of those units, the app crashes during layout.How has this been tested?
On web, using a self-hosted or atomic site with latest Gutenberg version.
Spacing
->Padding
Alternatively you can use this HTML in the Gutenberg demo app by switching to HTML mode, pasting it and switching back to Visual mode to test:
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).