Issue #1533💬 AnsweredOpened October 22, 2018by thanhpd560 reactions

Color picker goes outside the editor screen when NOT FULL SCREEN

快速解答by alfaalex81

I have defined the exact position on color picker definition, for example

Read full answer below ↓

Question

Hi, I have successfully contained div id="gjs" inside of another div container with left side menu and top menu. It's working well, but there is a problem. When i click on color picker to change background color, it does show up outside the screen. How can i fix it? image image

Answers (3)

alfaalex81October 23, 2018

I have defined the exact position on color picker definition, for example

grapesjs.init({
                ...
                colorPicker: {
                    appendTo: 'parent',
                    offset: { top: 26, left: -166, },
                },
                ...
});
thanhpd56October 25, 2018

@alfaalex81 thank for your help. I did solve the problem by making its parents position to static so that the color picker position (absolute) align to the root (view port).

lock[bot]October 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.