Div not resizing automatically on resizing image when using flex
This is most likely not a problem with grapejs but rather css. Could you set a up a demo?
Read full answer below ↓Question
This is my code wherein I want the logo-image to be resizable. Also, I want a div element at the other extreme end so that the user may drag and drop the logo into that container. To have that arrangement, I'm using flex display with justify-content as space-between. But with flex the background doesn't resize automatically. If I remove the flex styling, then it works alright, but my div then is not visible inline in the extreme right corner, the way I want it to.
<div class="padding-left-small blue-background">
<div class="@Html.RtlClassName() container">
<div class="padding-bottom-small padding-top-small" style="display: flex; justify-content: space-between" >
<a class="logo-image" style="">
<img data-gjs-type="image" data-gjs-draggable="div[class~='padding-bottom-small']" src="logo.png"></img>
</a>
<div style=" width: 61px; height: 61px;"></div>
</div>
</div>
</div>
Answers (2)
This is most likely not a problem with grapejs but rather css. Could you set a up a demo?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1409
Component Drag Event
I want to know how can I get that component from which element is dragged and drop to the other component. I need to add a class if compone...
Issue #1844
Remove upload image option and disable (x) icon for default images
I want to remove the "Drop files here or click to upload" section and also disable the (x) cross icon next tothe default images, not allowi...
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...
Issue #1647
How to display src of image component?
hi @artf i want to display my image when i drag and drop image component here is my code bm.add( 'image', { label: opt.imageBlkLabel, categ...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.