Gutenberg: Image Block: Changing alignment removes image resizing

Created on 18 Jun 2020  路  2Comments  路  Source: WordPress/gutenberg

Describe the bug

After resizing an image and then setting the image size, if one chooses to change alignment on the image, the resizing is undone.

To reproduce
Steps to reproduce the behavior:

  1. Create a new post
  2. Add an image block
  3. Manually resize the image using the image controls
  4. Try resizing the image using "Image size" options under the Block Settings
  5. Set alignment in the block editor and see image return to full size

This seems to only happen the first time this alignment is given to an image. For example, after alignment is given to an image, I can change the alignment without impacting the image size.

Expected behavior

I expected the image to just be aligned properly without impacting the size of the image.

Screenshots

Video: https://cloudup.com/cEZsO5sCdk6

Editor version (please complete the following information):

  • WordPress version: 5.4.2
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Gutenberg Plugin installed
  • If the Gutenberg plugin is installed, which version is it? 8.3

Desktop (please complete the following information):

  • OS: Mac
  • Browser: Chrome
  • Version: 83.0.4103.106
[Block] Image [Type] Bug

All 2 comments

Seems to be related to #23234 where you can't use image size controls in the new version of the editor.

Also appears to be related to: When full-sized image is selected only the large size image is displayed #23128

Was this page helpful?
0 / 5 - 0 ratings