Issue #5746๐Ÿ’ฌ AnsweredOpened Mar 12, 2024by rhoenerSBS1 reactions

ColorPicker Offset incorrect when Panels are outside of Editor Container

Quick answerby bernestoโค 1

Hi @artf, The root issue is that we are trying to place a popover palette absolutely positioned over another element at an arbitrary location on the page. And we need to do this even when the origin element is outside of the editor container node. To meet this requirement, the popover palette can not be contained anyw...

Read full answer below โ†“

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v122 Reproducible demo link https://grapesjs.com/docs/getting-started.html#style-manager Describe the bug How to reproduce the bug?Go to the "StyleManager" section of the "Getting Started" doc from GrapeJSTry to use the color picker in the editor example of that section.Even if you add "position:relative" to .editor-canvas the color picker still calculates a wrong offset when the panels are outside of the editor container What is the expected behavior? the color picker shows up next to the...

Answers (4)

bernestoโ€ข Mar 13, 2024

Hi @artf, The root issue is that we are trying to place a popover palette absolutely positioned over another element at an arbitrary location on the page. And we need to do this even when the origin element is outside of the editor container node. To meet this requirement, the popover palette can n...

artfโ€ข Mar 12, 2024

@bernesto can you check this one as it seems to be related to your changes

bernestoโ€ข Mar 12, 2024

Yes, I see the issue. The logic needs to account for when the parent is outside of the container. Let me see what I can do there.

GJS Helperโ€ข May 17, 2026

The issue you're encountering with the GrapesJS color picker's incorrect offset, especially when panels are outside the main editor container, is a common problem related to how third-party UI components handle positioning within complex layouts. Let's break down the root cause and provide a robust...

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.