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

Reset zoom view

2 Answers 107 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ivan
Top achievements
Rank 1
Ivan asked on 19 Dec 2014, 10:26 PM
Hello, 

I have a listview with images, if I click on image then I go to a view with data-zoom="true". But when I let an image zoomed and leave the view, when I come back to the view,  the view remembers the zoomed position and my new image is also zoomed. So I want to know how to reset the data-zoom, when I load the view.
I was also looking in the documentation, but I could not find anything for my solution.

2 Answers, 1 is accepted

Sort by
0
Ivan
Top achievements
Rank 1
answered on 22 Dec 2014, 09:30 AM
I used this to fix my issue. I hope that can help someone.

$(".km-scroll-container").css("-webkit-transform", "");
0
Kaloyan
Telerik team
answered on 24 Dec 2014, 10:13 AM
Hi Ivan,

Thank you for sharing the solution with our community.

Have a nice and happy holidays.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
Ivan
Top achievements
Rank 1
Answers by
Ivan
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or