Ionic - Responsive ion-img


#1

I have a virtual scroll using ion-list and ion-item.

Each ion-item contains ion-img for performance reasons.

Images need to be scaled responsively, their dimensions need to be defined in % in css.

How do I make ion-img responsive?

I suppose I could possibly style it like a normal img (assuming the ion-img component supports that), but I need to provide approxItemWidth and approxItemHeight as well, which can only be specified in px.

Is there a way to set approxItemWidth and approxItemHeight in % or some other way to approach this issue?