03-28-2011 03:04 PM - edited 03-28-2011 03:30 PM
I'm trying to lock the app to a landscape or portait only view. The simulator is really buggy and distorts the app when i change the view. It even trashes the built in browser so I don't know what is the correct way to do this.
What do I need to add to the config.xml file?
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.3" rim:header="RIM-Widget:rim/widget">
<name>Landscape App Name</name>
<icon rim:hover="false" src="icon.png"/>
<icon rim:hover="true" src="icon.png"/>
03-28-2011 03:46 PM
There are a few other posts in the forum around this topic. It isn't supported in Beta 3 but it is coming. A search at the top of the forum should give you the answers you are looking for.
03-28-2011 04:09 PM - edited 03-28-2011 04:12 PM
If its not supported, does that mean its not supported for the playbook or not supported on the simulator?
Should I use landscape and portrait specific CSS, perhaps show an alert that says it only works in landscape? If so, how should I test it? The simulator doesn't refresh the view when the orientation is changed.
03-28-2011 05:40 PM
Our WebWorks Beta 3 does not support locking orientation in general.... simulator or device.
Yes you should likely have portrait and landscape CSS. As far as a bug in the simulator around not refreshing your content properly, I'm not sure of how to get around that other than exiting the application and entering it in either landscape or portrait instead of switching on the fly until the simulator supports it.
03-28-2011 06:24 PM
The simulator is reporting that the screen width and height are 1280 x 768. I see documentation that the playbook is 1024 x 600.
Is this correct?