Issue #6562Opened July 9, 2025by jsxOverdose1 reactions

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?

  1. Resize the image
  2. Drag it somewhere else on the canvas
  3. Click one of those little blue resizer squares
  4. 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)

jsxOverdoseJuly 15, 20250 reactions

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

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.