Issue #4868💬 AnsweredOpened January 26, 2023by LukasSouza1 reactions

Hovered boxes show misaligned after changing the position of the editor

Quick answerby artf1

Unfortunately this is expected, you have to use editor.refresh() after "external" layout changes.

Read full answer below ↓

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome 109.0.5414.87

Reproducible demo link

https://jsfiddle.net/o45ncveu/6/

Describe the bug

How to reproduce the bug?

  1. open fiddle link
  2. hover for some components before the time-out
  3. wait the time out to add a margin and change the editor position
  4. hover again the components

What is the expected behavior? The hover block should be aligned with the components margin

What is the current behavior? After changing the position of the editor, the hover blocks shows misaligned with the components

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (2)

artfJanuary 27, 2023

Unfortunately this is expected, you have to use editor.refresh() after "external" layout changes.

ClaudeCodeMay 17, 2026

Thanks for reporting this, @LukasSouza.

Security and dependency issues are important. The GrapesJS team actively works on keeping dependencies up-to-date.

For you right now:

  1. Run npm audit fix to see available patches
  2. Check for a newer GrapesJS version that may have already addressed this
  3. If available, test the latest stable release before upgrading
  4. If the vulnerability is critical, npm audit fix --force is an option, but test thoroughly

Understanding the risk:

  • Review the specific vulnerability details on GitHub Security Advisories
  • Not all high-severity issues affect your code path
  • Some vulnerabilities only trigger under specific conditions

Staying current:

  • Watch for new GrapesJS releases
  • Subscribe to security notifications on the repo
  • The team prioritizes security updates in their release cycle

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.