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

When I resize the image, it goes beyond the parent content. #28617

Closed
ddryo opened this issue Jan 31, 2021 · 1 comment
Closed

When I resize the image, it goes beyond the parent content. #28617

ddryo opened this issue Jan 31, 2021 · 1 comment
Labels
[Block] Image Affects the Image Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended

Comments

@ddryo
Copy link
Contributor

ddryo commented Jan 31, 2021

!!! : I'm sorry, I sent it in the middle of writing. I'm writing the continuation now.

Thank you for your development.

Please note that English may be inappropriate because you are Japanese.

Description

When I resize the image, it goes beyond the parent content. The image may stick out when some conditions are met.

###Case 1 : In the default theme, it happens just by changing the "% size" of the image.

img_bug_case1

This issue can be prevented by controlling max-width in .components-resizable-box__container.

For example, I was able to solve it by adding the following CSS.

.wp-block-image .components-resizable-box__container {
     max-width: 100% !important;
    height: auto !important;
}

Case 2 : Further problems occur when moving blocks.

I don't know the specific conditions yet, but for example, this problem may occur when moving an image to a column-block.

It cannot be solved if it is a solution to Case1.

For example, the theme "Arkhe" includes CSS that solves Case 1, but this Case 2 has occurred further.

( "Arkhe": https://ja.wordpress.org/themes/arkhe/ )

the_bug_case02

When this problem occurred, I looked into the DOM and noticed that the .components-resizable-box__container class did not exist.

ss-2021-01-31 17 52 45

Case 3 : As with Case 2, .components-resizable-box__container does not exist for mobile size.

The following image is a screenshot without the "% size" specified.

ss-2021-01-31 18 04 33

And the following image is a screenshot with "% size" specified.

ss-2021-01-31 18 04 18

WordPress information

  • WordPress version: 5.6
  • Gutenberg version: 9.8.2
  • Are all plugins except Gutenberg deactivated? "Yes".
  • Are you using a default theme "Yes". Twenty Twenty-One Ver.1.1

Device information

  • Device: MacBook
  • Operating system: Mac OS Catalina
  • Browser: Chrome
@paaljoachim
Copy link
Contributor

Hi @ddryo

Thank you for creating the issue!

Your issue is a duplicate of this issue: #12168
There are also other similar issues as well.
As your issue brings with it additional context I am not sure if we should close or keep it open.
@tellthemachines @jasmussen

@paaljoachim paaljoachim added [Block] Image Affects the Image Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended labels Jan 31, 2021
@talldan talldan closed this as completed Feb 1, 2021
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 [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants