Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple image cropping configurations can't be used in the same page #101

Open
jerintk opened this issue Nov 6, 2019 · 2 comments
Open

Comments

@jerintk
Copy link

jerintk commented Nov 6, 2019

🪲 Bug report

It is not possible to add image cropping plugin with multiple styles.
Let's say there are multiple image uploading controls and each of them has a different requirement in cropping size.
In such cases, the plugin will always load the first style which is available.
No matter we use multiple components or use the plugin in the same component itself, it will always take the first style available.
By the word 'styles', what I meant was the styles passed in the <ly-img-cropper [withClass]="classes.cropping"

@jerintk
Copy link
Author

jerintk commented Nov 6, 2019

Is there any way to make the cropping plugin listen to the changes in [withClass]="classes.cropping"?

@Enlcxx
Copy link
Member

Enlcxx commented Nov 6, 2019

Hi @jerintk you want to add styles to the component? for now this is limited. You can only add styles to the container, in version 3 it will be easier to customize a component. To add styles to the container (ly-img-cropper) I could use [ngClass] since [withClass] only serves to add the given className.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants