GrapesJS / preset-webpage

GrapesJS Plugin Webpage Preset
http://grapesjs.com/demo.html
BSD 3-Clause "New" or "Revised" License
335 stars 291 forks source link

Color box opens outside the visible page #62

Closed Progressive-Programmer closed 2 years ago

Progressive-Programmer commented 3 years ago

The normal placement of the grapesjs is given in the picture below:

Screenshot 2021-07-09 at 7 16 04 PM

When the color box is opened, the box opens up outside the view of page. And we have to scroll on to right to find it.

the color box should ideally open right next to the color option

Screenshot 2021-07-09 at 7 10 15 PM

Progressive-Programmer commented 3 years ago

@artf

Screenshot 2021-07-23 at 12 27 09 PM

The position of this color selector box is in element.style and the left position is pushing it outside the view. How and where in grapesjs are we deciding the position of color selector box?

Progressive-Programmer commented 3 years ago

@artf i have tried calling the classname .sp-container but the box's css doesn't get triggered with that .

RogerHaugen commented 2 years ago

2022-04-24 23_06_53-

I am just using the demo site, and i cannot choose background colours, is this the same issue? tho i cannot scroll to find the colour picker

artf commented 2 years ago

You can change the color picker options https://github.com/artf/grapesjs/issues/3369#issuecomment-814845063 @RogerHaugen that's the bg preview, not the color picker