Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
01-05-2013 02:13 PM
I have QNXStageWebView's working in several AIR apps at 100% (e.g. rendering at 1:1 pixel ratio) on my PlayBook but running similar code on my BB10 Dev Alpha device always zooms in (approx 3x) when loading.
The WebView's I have are used to display non-scrollable, non-zoomable content and have (as mentioned before) worked flawlessly in the past but just don't seem to behave on BB10 at all.
Here's the code I'm using at the moment (although I've tried dozens of minor variations to this trying to get it to work).
var appPath:File = File.applicationDirectory.resolvePath('SomeFile.html');
var filePath:File = new File(appPath.nativePath);
var rect:Rectangle = new Rectangle(0, 0, 720, 1280);//yes I've tried 720 & 768
webView = new QNXStageWebView("myWebView");
webView.viewPort = rect;
webView.enableCookies = true;
webView.stage = this.stage;
webView.visible = true;
webView.zoomToFitWidthOnLoad = false;
webView.zOrder = -1;
and in my "SomeFile.html" file is basically this:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"/>
<body id="body" bgcolor="#000000" text="#000000">
I've tried hard coding the device-width, adding/removing the device density DPI setting, etc. etc.
Has anyone had any luck with this so far on BB10?
01-06-2013 10:27 AM