When resizing images in the same section, they all resize...
Question
I'm encountering a strange bug, when resizing a single image, the sibling photo is also being resized. My only thought is around how the corresponding image is being resized. Perhaps the selector that Grapes is choosing is too vague?

Answers (3)
Hi @AustinTBiggs,
I suspect that grapesjs is applying the height/width styles to a class which is applied to both images. Could you check to see if both images have the same class?
Hey Austin, as suggested by Ryan, just remove the class
@artf - I can do that as a quick fix.
However, it seems counter-intuitive. Classes in CSS are meant to be re-used. If the "fix" is to remove the class, that seems to me that the issue is how Grapes deals w/ classes. I use classes on images (and other elements) for everything from animations to material shadows.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1369
[BUG] Class of a block doesn't always show in the classes section
Hello everyone, I have added many custom blocks and gave the same css class to all the images in those blocks. Let's call it for now 'image...
Issue #1955
Resizing images with non corner points resizes both width and height.
This bug can be reproduced in either GrapesJS demos. Bug: After dragging and dropping an image, using one of the resize points that are not...
Issue #1756
Drag and Drop not working in resized editor window in Google Chrome
Hi, I developed some components and all works fine in Firefox, Opera browser. In Google chrome also working fine in fullscreen editor mode...
Issue #1809
Customize image resizing
If i want to limit resizing an image to only specific dimensions, how can i do that? Also is it possible to enable resizing only from the b...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.