cloudinary / cloudinary/cloudinary_angular

Background image position options instead of center

Aperta
#297 2 commenti 0 reazioni 1 assegnatario Rivendicata da @strausr Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
302
Fork
224
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Explain your use case
There are many cases where 'center center' is not ideal for background positions as defined in the background image directive. https://github.com/cloudinary/cloudinary_angular/blob/master/projects/angular-cld/src/lib/cloudinary-background-image.directive.ts

## Describe the problem you’re trying to solve
A way to provide an override without some css !important hack to control image position.

## Do you have a proposed solution?
Input param for background position, defaults to center

```
@Input('clbackgroundposition') background_position = 'center center';
...
this.renderer.setStyle(nativeElement, 'background-position', `${background_position}`);

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.