adragan Posted February 19, 2014 Posted February 19, 2014 Is there a way to automatically scale a JPEG or a PNG to fit on the user screen ? I have a lot of spare parts images scanned in 1000 resolutions and dimmensions and I would like to put them on the screen of the user. I can't scale them on the server because only god knows what is their local screen resolution and most of the pictures go out of the available screen space. I tried Image.Autosize:=True but does not work. Quote
altagur Posted February 22, 2014 Posted February 22, 2014 Autosize:=True is not work, but You can use xtype:'image' , shrinkWrap:true http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Img-cfg-shrinkWrap or use html frame with using the HTML <img> tag without specifying width or height works fine Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.