Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

XDK Viewport problem, app pages are not zooming

alexis_o_
Beginner
625 Views

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-tag -->
	<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

0 Kudos
2 Replies
PaulF_IntelCorp
Employee
625 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.

0 Kudos
alexis_o_
Beginner
625 Views

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

Thank you!!

0 Kudos
Reply