I'm trying to create a Ext Windows with the exact image size, but I can't find how to attach the Image object to the window body and after, make it resize with the window.
Any idea?
Thank you.Code:var w, img = new Image(); img.onload = function(){ w = Ext.create('Ext.window.Window', { title: obj.title, constrain: true, height: img.height, width: img.width, resizable: {preserveAspectRatio: true}, layout: 'fit', html: img // ??? }).show(); }; img.src='data:image/jpeg;base64,'+obj.img;