Skip to content

[RNMobile] Avoid setting alignSelf for image placeholders#18793

Merged
mchowning merged 1 commit intomasterfrom
rnmobile/1592_fix_alignment_hiding_image_placeholder
Dec 17, 2019
Merged

[RNMobile] Avoid setting alignSelf for image placeholders#18793
mchowning merged 1 commit intomasterfrom
rnmobile/1592_fix_alignment_hiding_image_placeholder

Conversation

@mchowning
Copy link
Copy Markdown
Contributor

@mchowning mchowning commented Nov 27, 2019

Description

This fixes wordpress-mobile/gutenberg-mobile#1592, where image placeholders would not be shown if there was a failure downloading an aligned image. This was caused by the setting of the alignSelf attribute. Since that attribute is not being used for the placeholder, only setting it when an image is present fixes the issue.

Related gutenberg-mobile PR

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR. .

This was causing the placeholders to not display
@mchowning mchowning added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Nov 27, 2019
Copy link
Copy Markdown
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected!
Thank you @mchowning 🙏

@mchowning mchowning merged commit 30483ce into master Dec 17, 2019
@mchowning mchowning deleted the rnmobile/1592_fix_alignment_hiding_image_placeholder branch December 17, 2019 14:50
@youknowriad youknowriad added this to the Gutenberg 7.2 milestone Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Images with alignment do not show up in the editor when editing offline

3 participants