You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am building a page builder using GrapesJS and React (@grapesjs/react). I am facing a UI positioning issue with the component selection toolbar.
The Issue:
When I select a component inside the canvas, the toolbar appears as expected. However, if the selected component is placed too close to the left or right edges of the canvas, the toolbar overflows the viewport bounds and gets clipped/hidden.
Here is how my Canvas is currently wrapped in my code:
<divclassName="w-full p-4"><Canvas/></div>
My question:
Is there a built-in configuration in GrapesJS, or a specific CSS trick, to force the toolbar to stay within the visible screen area (e.g., automatically shifting it to the left/right when it reaches the boundaries)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am building a page builder using GrapesJS and React (@grapesjs/react). I am facing a UI positioning issue with the component selection toolbar.
The Issue:
When I select a component inside the canvas, the toolbar appears as expected. However, if the selected component is placed too close to the left or right edges of the canvas, the toolbar overflows the viewport bounds and gets clipped/hidden.
Here is how my Canvas is currently wrapped in my code:
My question:
Is there a built-in configuration in GrapesJS, or a specific CSS trick, to force the toolbar to stay within the visible screen area (e.g., automatically shifting it to the left/right when it reaches the boundaries)?
Beta Was this translation helpful? Give feedback.
All reactions