BUG: Moved element snaps to wrong position on resize
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome 138.0.7204.101
Reproducible demo link
https://jsfiddle.net/u3L89ejh/1/
Describe the bug
How to reproduce the bug?
- Resize the image
- Drag it somewhere else on the canvas
- Click one of those little blue resizer squares
- Watch the image jumps into a different position
What is the expected behavior?
- Should stay where I left it
- If the top/left/right/bottom values doesn’t have units, treat the values like
px, not%.
What is the current behavior?
- When you move the image, top and left behave nicely with pixel values.
- But the moment you touch a resizer, it swaps to
%and suddenly jumps to a whole new position on the canvas.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (2)
@jsxOverdose pushed a fix to this new release: https://github.com/GrapesJS/grapesjs/releases/tag/v0.22.11
@artf In the new version, there's another bug: when you click one of the resize handles on the Y-axis, it makes the image significantly larger. Here's the demo: https://jsfiddle.net/du81zL6r/
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6409
BUG: Cannot drag to move components on mobile
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v133 Reproducible demo link https:/...
Issue #4323
BUG: Performance issue while dragging component to canvas when you have 2k component on canvas
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Google Chrome Version 101.0.4951.41 (Officia...
Issue #6515
BUG: Resizing an element affects all elements with the same class
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 136.0.7103.93 Reproducible demo lin...
Issue #5705
BUG: Component tools misalign when the editor is resized
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v122 Reproducible demo link https:/...
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.