-
2 May 2011 9:32 AM #1
[CLOSED]Image rotate issue in IE
[CLOSED]Image rotate issue in IE
Hello,
I'm working on image rotating feature. I have a draw component that contains an image sprite.
To rotate the image I use the setAttributes method:Code:Ext.create('Ext.draw.Component', { id : 'draw-component', viewBox : false, width : 800, height : 1000, items : [{ type : 'image', id : 'draw-component-sprite', x : 0, y : 0, width : 800, height : 1000, src : '2.PNG' }] });
That works fine in FF and Safari but produce an error in IE7. The error message is:Code:var sprite = Ext.getCmp('draw-component').surface.items.first(); sprite.setAttributes( { rotation : { degrees : 90, redraw : true } }, true);
Line: 10744
Char: 9
Error: events is null or not an object
Code: 0
Thank you.
-
2 May 2011 9:38 AM #2
Oops. I found the issue. I had to use 'rotate' attribute instead of 'rotation'.
-
2 May 2011 11:53 AM #3
You don't need to have redraw: true in your setAttributes.
The 2nd parameter (true) in your setAttributes means you will perform a redraw.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Auto rotate Carousel?
By Bucs in forum Sencha Touch 1.x: DiscussionReplies: 3Last Post: 17 Feb 2012, 1:14 AM -
Rotate the button label
By same66 in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 1 Feb 2011, 5:59 AM -
Image Rotate/ Zoom/ Pan
By durlabh in forum Community DiscussionReplies: 4Last Post: 1 Dec 2010, 9:09 AM -
Rotate text in Header
By Adam W in forum Ext 2.x: Help & DiscussionReplies: 14Last Post: 19 Feb 2009, 1:35 PM -
Rotate a grid row 90
By Joschy in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 9 Dec 2008, 1:42 AM


Reply With Quote