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

Attempting to crop an image wihin a row block causes layout to break #51250

Closed
markdavies opened this issue Jun 5, 2023 · 1 comment · Fixed by #51285
Closed

Attempting to crop an image wihin a row block causes layout to break #51250

markdavies opened this issue Jun 5, 2023 · 1 comment · Fixed by #51285
Assignees
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended

Comments

@markdavies
Copy link

Description

When editing an image within a row block, clicking on the crop tool shrinks the image to an unusable size. This will fix itself suddenly sometimes too, after playing with other controls or opening the web inspector.

Inspecting the div that surrounds the react-easy-crop element shows that its width and height are set to 0:

Screenshot 2023-06-06 at 9 35 52 am

Step-by-step reproduction instructions

  1. Install new Wordpress 6.2.2 and 2023 theme.
  2. Create a new post
  3. Insert a row block and within it add two images
  4. Select one image and click on the crop button in the contextual menu

Screenshots, screen recording, code snippet

Screen capture

Environment info

  • Wordpress 6.2.2 Theme: 2023
  • Firefox 113.0.2
  • macOS 13.4 (22F66)

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@ndiego ndiego added the Needs Testing Needs further testing to be confirmed. label Jun 6, 2023
@ndiego
Copy link
Member

ndiego commented Jun 6, 2023

This issue was reviewed in today's Editor Bug Scrub, and I have been able to confirm. Thanks for reporting @markdavies

@ndiego ndiego added [Type] Bug An existing feature does not function as intended [Block] Image Affects the Image Block and removed Needs Testing Needs further testing to be confirmed. labels Jun 6, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 7, 2023
@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants