Issue #735πŸ’¬ AnsweredOpened January 9, 2018by austinbiggs0 reactions

When resizing images in the same section, they all resize...

Quick answerby ryandeba

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?

Read full answer below ↓

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)

ryandebaβ€’ January 9, 2018

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?

artfβ€’ January 10, 2018

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

austinbiggsβ€’ January 10, 2018

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.