This is a migrated thread and some comments may be shown as answers.

Image Editor Flip, Rotate Issue in FireFox

4 Answers 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Akila Kumarasamy
Top achievements
Rank 1
Akila Kumarasamy asked on 08 Dec 2010, 10:24 PM
Hi,

We are using RadEditor Version 2009.3.1208. I have an issue with Image Editor Flip and rotate in Firefox. Actaully, its not working in Firefox. And I have gone through the code and found that filter is used for flipping and rotating the images. And I think filter is specific to IE and there is a code to just "return" if the filter is null which makes it not to work in firefox.  ITs problem with both flip and rotate, does any one had the same problem?  How can I fix this?Any one can help me?
_updateFlipUI: function()
    {
        var horiz = this._flipHorizontal;
        var vertical = this._flipVertical;
  
        var filters = this._image.filters;
  
        //Moz TEMP
        if (!filters)
         return;
  
        filters.item("flipH").enabled = horiz ? 1 : 0;
        filters.item("flipV").enabled = vertical ? 1 : 0;
    },
_updateRotationUI: function()
    {
        var image = this._image;
  
        //If IE
        var filters = image.filters;
        if (filters)
        {
            var filter = filters.item("DXImageTransform.Microsoft.Matrix");
            if (filter)
            {
                //deg input defines the requested angle of rotation.
                var deg = this._rotationAngle;
                var deg2radians = Math.PI * 2 / 360;
  
                var rad = deg * deg2radians;
                var costheta = Math.cos(rad);
                var sintheta = Math.sin(rad);
                filter.M11 = costheta;
                filter.M12 = -sintheta;
                filter.M21 = sintheta;
                filter.M22 = costheta;
            }
        }
    }

//Will be different in different browsers
    _customInitialize: function()
    {
        //Set all filters to the image (TODO: the matrix filter in the future too)
        this._image.style.filter = "flipH flipV progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=100) progid:DXImageTransform.Microsoft.Matrix(M11='1.0', sizingmethod='auto expand')";
    },

Thanks,
Akila.

4 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 10 Dec 2010, 02:31 PM
Hi Akila,

This issue is fixed in later versions of RadEditor. You can verify this on the live demos.

I would recommend you to upgrade to the latest version of RadControls for ASP.NET AJAX (currently 2010.3.1109).

Greetings,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Akila Kumarasamy
Top achievements
Rank 1
answered on 10 Dec 2010, 04:16 PM
Hi Dobromir,

Thanks for the information. yep, I saw that fix in demo version. Is there any quick fix available for the previous version? We have the source code so, if any quick fix available we will be able to apply it. Right now, we cannot upgrade immediately as this would be a big process for us as we have custom code in it. 

Thanks,
Akila.
0
Accepted
Dobromir
Telerik team
answered on 15 Dec 2010, 01:59 PM
Hi Akila,

As I mentioned in my answer to the other thread regarding the ImageManager dialog, I am not able to provide a stand-alone fix for this issue. You can try as a workaround to use the dialogs from the latest version of RadEditor, but I cannot assure you that it will not have any side effects.

I have attached ImageEditor.ascx dialog file from the latest version of RadControls (2010.3.1109).

Best wishes,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Akila Kumarasamy
Top achievements
Rank 1
answered on 15 Dec 2010, 04:19 PM
Hi Dobromir ,

Thank you for your reply and the details and also for the code. I will go through the code which u have attached , also we will make plans to upgrade. Thanks again for the details.

Thanks,
Akila.
Tags
Editor
Asked by
Akila Kumarasamy
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Akila Kumarasamy
Top achievements
Rank 1
Share this question
or