Replies: 1 comment
-
For such a case providing a reproducible demo might be helpful, there are too many edge cases for "centering elements" in web |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, I need to center every blocks added in canvas, but my current tries doesn´t work.
I tried to add the code below to blocks definition:
selectedComponent.addStyle({ display: 'flex', 'align-items': 'center', 'justify-content': 'center' })
But when I drag and drop the block the component to the canvas, this rules doens´t work
Beta Was this translation helpful? Give feedback.
All reactions