Issue #735Opened January 9, 2018by austinbiggs0 reactions

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?

screen shot 2018-01-09 at 11 43 05 am

Answers (3)

ryandebaJanuary 9, 20180 reactions

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?

artfJanuary 10, 20180 reactions

Hey Austin, as suggested by Ryan, just remove the class

austinbiggsJanuary 10, 20180 reactions

@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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.