Issue #1533Opened October 22, 2018by thanhpd560 reactions

Color picker goes outside the editor screen when NOT FULL SCREEN

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, 20180 reactions

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

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

@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, 20190 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.