How to use contentMode on images

The TVML documentation mentions a contentMode property for images yet it doesn't specify what the actual values for this are (I submitted a bug report for this). Does anyone know how to properly use this property in a scenario like below:


<lockup><img src="..." width="200" height="300" contentMode="????" /></lockup>


I've tried "aspect-fit", "aspectFit", "scaledAspectFit", etc and it does not change the image at all. Ultimately I'm trying to get the image to fit into the container and maintain its aspect ratio.


Thanks!

Replies

There is a typo in your XML; it should be 'contentsMode' instead of 'contentMode'. The values are 'aspectFill' or 'aspectFit'; defaults to 'aspectFit'.