grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

QUESTION: Float Left/right removes the component from the container

Open jayeshmotwani opened this issue 6 years ago • 2 comments

I have observed that whenever I align a component left or right (float left or float right), that component comes out of the parent container, however If I make it to 'None' it comes back inside the container in it's last position. I found this on live demo too.

Refer the attached screenshots Grapes JS Before alignment

Grapes JS After alignment

Could you please let me know why it happens like this?

Thanks for your help.

jayeshmotwani avatar Sep 03 '20 10:09 jayeshmotwani

The float property collapses the parent div. You can use this for reference.

Ju99ernaut avatar Sep 05 '20 09:09 Ju99ernaut

Yeah, unfortunately, that is how weird the float works, so if you're creating a builder for non-tech people avoid that property 😬

artf avatar Sep 08 '20 06:09 artf