Community
cancel
Showing results for 
Search instead for 
Did you mean: 
alexis_o_
Beginner
56 Views

XDK Viewport problem, app pages are not zooming

Hello, first, sorry for my english xD.

I ask you help please. I don't know why, but my hybrid app is not zooming. I've tried changing the viewport but nothing (even with the example page). I don't know if this is problem of the XDK version. Yesterday I downloaded this version. Before i had  not this problem. This is my code.

 

<!DOCTYPE html>
<html>
<!--
  * Please see the included README.md file for license terms and conditions.
  -->
<head>
    <title>Blank Cordova Mobile App Project Template (Lite)</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">

    <!-- see http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-ta... -->
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes, minimum-scale=1, maximum-scale=20">
    

        

    <script src="cordova.js"></script>          <!-- phantom library, needed for Cordova api calls, added during build -->
    <script src="js/app.js"></script>           <!-- recommended location of your JavaScript code relative to other JS files -->
    <script src="xdk/init-dev.js"></script>     <!-- normalizes device and document ready events, see README for details -->
</head>

<body>

    <p>Hello, Cordova!</p>
    <img src="img.jpg" width="900" height="600" />

</body>
</html>

Thanks for your help

Tags (2)
0 Kudos
2 Replies
PaulF_IntelCorp
Employee
56 Views

Where are you trying to zoom? In a built app? In the Simulate tab? In App Preview? Confirm it works or fails in a built app, first. The other environments are not perfect simulations, they have limitations.

alexis_o_
Beginner
56 Views

Ooh sorry, you had right,  the problem was in de App Preview,  but in the built apk the zoom works.

Thank you!!

Reply