Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70443

Ion-img sometimes loaded image smallest

$
0
0

Hello, it’s my first topic here. I hope solved my problem.

First of all, this error doesn’t happens all the time.
I have a ion-img component that load image from url (s3). Sometimes, when loaded the image, the ionic render a small image.

Screenshot at Jun 17 18-31-57

My html:

<div *ngIf="news" class="embla" id="track">
    <div class="embla__container">
        <div *ngFor="let new of news" class="embla__slide">
            <img  (click)="open(new)" disabled [src]="new.imagePath" class="thumb-img"/>
        </div>
    </div>
</div>

When i inspect by browser, the image path is correct, but the pixel provided by ion-slide is smallest:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>