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

client side zooming in Chrome

2 Answers 51 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 12 Dec 2012, 05:14 PM
I'm trying to zoom the image in on image load by doing the following, bound to OnClientLoad:

function ZoomImage(sender, args) {
sender.zoomBestFit();
}

This works fine in IE9, Firefox, and Safari, but on Chrome 23, no zooming occurs.  I have the same problem if I substitute a call to zoomImage.

The status panel of the control *claims* to be at 25% zoom, but it visibly isn't.

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 13 Dec 2012, 11:27 AM
Hi David,

Could you try to set a little timeout to the zoomBestFit() method? That fixed the problem on our side:
function ZoomImage(sender, args) {
    setTimeout(function () {
       sender.zoomBestFit();
    }, 50)
}

All the best,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
David
Top achievements
Rank 1
answered on 13 Dec 2012, 02:07 PM
Thank you, setting the timeout resolved the problem for me as well.
Tags
ImageEditor
Asked by
David
Top achievements
Rank 1
Answers by
Vessy
Telerik team
David
Top achievements
Rank 1
Share this question
or