Thank you for reporting this bug. We will make it our priority to review this report.
Ext.Img component: sizing does not actually size specified image.
It looks like the Img component takes the supplied image and makes it the background-image for an Panel. Since this is the case, scaling of the image cannot be forced. When specifying a width and height, it should apply to the background-size attribute of the Panel.
I was assuming the following options:
which all, of course, would be added to the Panel's background-size attribute.
scaling: 'contain' or 'cover'
If you set mode : 'image' on the Ext.Img then it will act the way you wish. Or if you want to leave it as default then you can use this CSS:
Touch Premium Member
it would be great to see all used properties in the api doc also (not only investigating source code).
That would make live a little bit easier.
Maybe this are hidden gems for experienced developers that like sources but it is good to know that there is always one person who knows them all ;-)