Riron / ionic-img-viewer

Ionic 2+ component providing a Twitter inspired experience to visualize pictures.
MIT License
283 stars 118 forks source link

Small picture in the viewer #122

Closed alexdragneel closed 6 years ago

alexdragneel commented 6 years ago

Please provide you version information :

Dependency Version
ionic2 3.20.0
angular ^3.9.2
ionic-img-viewer ^2.9.0

Hello,

I have two ionic projects and I have installed your plugin on the two projects in the same way.

In the first project: It's work well but in the second, the picture are small. Have you any idea why ? The image tag is identical too.

image

image

Thanks. :)

Riron commented 6 years ago

Hello,

Could you share your code ? It's hard to guess what the problem could be as is. Thanks

alexdragneel commented 6 years ago

Wich part ? I use it like that: <img class="image" alt="" src="{{ (UserProfil)?.picture }}" style="object-fit: cover;" imageViewer/>

mathritter commented 6 years ago

I'm having the same problem, image shrinks instead zomming. Except I'm using ionic 3

alexdragneel commented 6 years ago

@mathritter Hello, I have check all my code and a css variable picture was the problem. Check to remove temporalily some of your css to search wich one is the probleme.

mathritter commented 6 years ago

I removed everything from app.scss, nothing happened, same behaviour