ionic framework - replacing <img> to <ion-img> and images are very small -


i followed guidance @ virtual scroll , updated list virtuallist.

all fine when converted card background images <img> <ion-img> images appearing background images cards very small. i'm missing?

check image dimensions section in ion-img docs.

by providing image dimensions front, ionic able accurately size image's location within viewport, helps lazy load images viewable. image dimensions can either set properties, inline styles, or external stylesheets. doesn't matter method of setting dimensions used, it's important somehow each ion-img has been given exact size.

you need set height , width image want show if using ion-img either through attributes or css styles.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -