A
active
I want an image in a tablecell to be scaled to fit the cell without
distorting the image.
I don't know what the image aspect ratio will be.
Sometimes I'd expect to see the width fit the cell and the height be smaller
than the cell.
Sometimes I'd expect to see the height fit the cell and the width be smaller
than the cell.
I tried 100% for both width and height but that makes both fit with
distortion.
Is there any way to do this?
Thanks
distorting the image.
I don't know what the image aspect ratio will be.
Sometimes I'd expect to see the width fit the cell and the height be smaller
than the cell.
Sometimes I'd expect to see the height fit the cell and the width be smaller
than the cell.
I tried 100% for both width and height but that makes both fit with
distortion.
Is there any way to do this?
Thanks