BUG: hovered boxes show misaligned after changing the position of the editor
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?
- open fiddle link
- hover for some components before the time-out
- wait the time out to add a margin and change the editor position
- 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 (1)
Unfortunately this is expected, you have to use editor.refresh() after "external" layout changes.
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 #4576
BUG: Clicking 'wrap for style' button affects the inner components of other components inside the same text box
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 104.0.5112.101 Reproducible demo link...
Issue #5633
BUG: Cannot select component in ``component:remove`` handler
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 120.0.6099.225 Reproducible...
Issue #4861
BUG: <br/> is adding to single line text, after entering space for the first time in firefox
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox Reproducible demo link https://jsf...
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.