To maintain the aspect ratio of an image (for instance when inside of a hbox layout using align: 'stretch'), I need the original width and height of the image that I use in the resize event.

For an Image() class this data can be accessed via the load event (after the image is loaded), but because Ext.Img is a subclass of Ext.Component obviously the 'load' event is not fired after the image is loaded. Does anyone know:
  • How to maintain the aspect ration of an Ext.Img, or
  • How to retrieve the width and the height of the original image (before any resizing is done), or
  • How to receive the load event on the Ext.Img component
Thanks in advance!