This question is locked. New answers and comments are not allowed.
Is it possible to enable Pinch & Zoom functionality on a hybrid app without KendoUI? I created a "Cross-platform Device Application (jQuery)" project and added the <meta name="viewport" content="initial-scale=1.0"> tag, but it still doesn't allow zoom on my Android Nexus 7 device. I also tried $(document).bind('mobileinit', function(){ $.mobile.metaViewportContent = 'width=device-width'; }); without success.
P.S. I also tried this approach with the (Blank) project template as well as these meta tag attempts (with no luck):
<meta name="viewport" content="user-scalable=yes, initial-scale=1, maximum-scale=2, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="initial-scale=1.0">
P.P.S. I found this posting that may be relevant:
http://stackoverflow.com/questions/13400380/how-to-enable-zoom-in-cordova-ios-app
http://hype.desk.com/customer/portal/questions/588156-scaling-to-fit-for-iphone-screen-in-phonegap-cordova-quick-and-easy
P.S. I also tried this approach with the (Blank) project template as well as these meta tag attempts (with no luck):
<meta name="viewport" content="user-scalable=yes, initial-scale=1, maximum-scale=2, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="initial-scale=1.0">
P.P.S. I found this posting that may be relevant:
http://stackoverflow.com/questions/13400380/how-to-enable-zoom-in-cordova-ios-app
http://hype.desk.com/customer/portal/questions/588156-scaling-to-fit-for-iphone-screen-in-phonegap-cordova-quick-and-easy
7 Answers, 1 is accepted
0
Hi,
As you have found out, we don't expose a way to set the EnableViewportScale at this time and we've noted your vote for it in the other thread.
Please excuse us for the inconvenience.
All the best,
Steve
the Telerik team
Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
As you have found out, we don't expose a way to set the EnableViewportScale at this time and we've noted your vote for it in the other thread.
Please excuse us for the inconvenience.
All the best,
Steve
the Telerik team
Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Rob
Top achievements
Rank 1
answered on 26 Apr 2013, 05:43 PM
You may also want to take a look at iScroll (http://cubiq.org/iscroll-4).
0
Rob
Top achievements
Rank 1
answered on 26 Apr 2013, 05:44 PM
You may also want to take a look at iScroll. Can't post a link here, but it's easy to find!
0
BLE
Top achievements
Rank 1
answered on 29 Apr 2013, 03:38 PM
Thanks, Rob, for the tip but iScroll pinch & zoom didn't work for me in Icenium.
0
BLE
Top achievements
Rank 1
answered on 11 Jul 2013, 08:16 PM
For Googlers, this thread is continued here: http://www.icenium.com/resources/forums/icenium-graphite-/config-xml-mentioned-in-phonegaps-documentation
0
William
Top achievements
Rank 1
answered on 11 Apr 2014, 03:22 AM
Hi, I am using VS extension for AppBuilder and jquery mobile (JQM).
I had tried using
$(document).bind("mobileinit", function(){
$.mobile.metaViewportContent = "width=device-width, minimum-scale=1, maximum-scale=2, user-scalable=yes";
});
I know that KendoUI Mobile can pinch/zoom and has a sample app for it.
So, please advise on how to pinch/zoom on JQM.
Thanks in advance for all replies
I had tried using
$(document).bind("mobileinit", function(){
$.mobile.metaViewportContent = "width=device-width, minimum-scale=1, maximum-scale=2, user-scalable=yes";
});
I know that KendoUI Mobile can pinch/zoom and has a sample app for it.
So, please advise on how to pinch/zoom on JQM.
Thanks in advance for all replies
0
Hello William,
Please, check the follow up in the link provided by BLE: this one
I believe it is well explained there.
Regards,
Kaloyan
Telerik
Please, check the follow up in the link provided by BLE: this one
I believe it is well explained there.
Regards,
Kaloyan
Telerik
Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!