View Full Version : resizing an image not working

30 Nov 2010, 6:27 AM
I have a panel with HTML: <img src="path"/>
the original image width is 300px. the image is displayed and croped at the end of the viewport (which is ok).
when I try to use the setWidth() on the image via the Ext.Element the image is not resized but the width property is set to the new value (check via getvalue).
how can I get the image to be resized.
I tried almost every method in the element class and no one worked so I thought I was missing something but then I changed the html to <div style="border: 2px green solid"></div> (no image) and run my code and the div was resized with no problems. it seems that just the image is having problems.
NOTE that I am using Safari 5.0.3 (iphone 4.1 user-agent) so I hope its not a safari issue. did not have time to check it on Iphone.

30 Nov 2010, 2:58 PM
Post a test case, it's impossible to tell without it.