cloudinary / cloudinary/cloudinary_angular

Background image position options instead of center

Abierto
#297 2 comentarios 0 reacciones 1 asignado Reclamado por @strausr Ver en GitHub
enhancement
Lenguaje dominante
TypeScript
Estrellas
302
Forks
224
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## 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}`);

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.