This is a migrated thread and some comments may be shown as answers.

Force Portrait orientation

1 Answer 96 Views
Windows Phone
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vitor
Top achievements
Rank 1
Vitor asked on 15 May 2014, 02:14 PM
Hi,

I made a project (Jquery) with appbuilder (Cliente Window)  that runs in iOS, Android and WP8.

I cant make the interface orientation to ONLY PORTRAIT on WP8.

I already set on project property to only support portrait. On iOS and Android, its ok.  

But in WP8 i can rotate to landscape.

How can i correct this?

sorry my english

1 Answer, 1 is accepted

Sort by
0
Iva Koevska
Telerik team
answered on 19 May 2014, 08:55 AM
Hi Vitor,

Thanks for sharing your issue in public. This might be beneficial to other users who come across a similar problem.

As explained in your support request, what you are experiencing is an erroneous behavior which is rooted in Apache Cordova.

On one hand, with Apache Cordova, orientation settings are not really respected for Windows Phone 8. When you set them in config.xml, they are ignored (this is what using the Project Properties in AppBuilder does - it sets the orientation preference in the config.xml for the corresponding platform). The way to correct this would be to manually set the orientation in the MainPage.xaml file.

Here is where the AppBuilder issue, or rather missing feature, comes in place. You need to manually edit MainPage.xaml to indicate the orientation restriction. And currently, there is no viable way to do that in AppBuilder. We have already logged this improvement in our feature tracking system but will appreciate it if you log it in our feedback portal so that other users might vote for it.

Regards,
Iva Koevska
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
Windows Phone
Asked by
Vitor
Top achievements
Rank 1
Answers by
Iva Koevska
Telerik team
Share this question
or