GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.36k stars 4.05k forks source link

BUG: Hover on component when parent of editor scrolls, show wrong positioning #3594

Closed maxtsh closed 3 years ago

maxtsh commented 3 years ago

Version: 0.17.19

Are you able to reproduce the bug from the demo? No, because its full screen and there is no parent container scroll.

What is the expected behavior? Hover state cadre to see the component changes position

Describe the bug detailed When I want to select or hover on specific component, it shows wrong positioning for cadre because of the parent scroll. this was not a case before 0.17.19 and it was fine.

**Are you able to attach screenshots, screencasts or a live demo? YES

Screenshot_17

artf commented 3 years ago

If the scrollable element is not the editor's parent node, you might need this option https://github.com/artf/grapesjs/blob/dc45604962e4e6a4a075f19d5de67090bac15fa5/src/editor/config/config.js#L157-L163

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.