component.addClass('my-class') generates another css rules that prevents resizing #5482
Unanswered
badiuciprian
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi, maybe there is a discussion about this but I could not find it.
Adding a class on a component with
editor.on('component:mount', function (component: Component) {
component.addClass('gjs-selected')
})
generates a new css rules that updates the width/height but is overriten by the rules applied to the component id so I cannot resize the component anymore.
Beta Was this translation helpful? Give feedback.
All reactions