cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cheresier
Frequent Visitor

Value of App.ActiveScreen.Orientation property remains unchanged when device is rotated

Hello,

 

I am struggling with making my app respond to changes in screen orientation, so I set up a test app that does just one thing: show the current value of the App.ActiveScreen.Orientation property in a label. App settings for Screen Size + Orientation can be seen in the screenshot attached.

 

When I run this app on my iPad Pro 12.9 (also tested on Google Pixel 3), the app responds to device rotation by adequately rotating the screen, however the value of the App.ActiveScreen.Orientation property remains unchanged: horizontal. Same with Parent.Orientation property of individual controls. Or with Parent.Width -- that stays stuck at 1366, no matter the device orientation. Without those properties being updated correctly, any attempt at building a responsive app is futile.

 

So I must me grossly missing something obvious here. But what?

 

Thanks in advance for the help!

 
4 REPLIES 4
alrez
Community Support
Community Support

Hi,

 

Everything looks to be fine to me. I am not certain what exactly is incorrect. This might be a better question to bring to Microsoft Support, I'll include a link below; if you would like to go down this route. otherwise if any other communities members might know the answer here feel free to chime in.

 

If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

MBDA
Advocate I
Advocate I

Hi cheresier,

Did you ever find out what was the issue ? I am facing the same issue. Please let me know what was the outcome of this.

Thanks

cheresier
Frequent Visitor

It has been a while now, but I think what ultimately worked for me was to check whether App.Width < App.Height as a way of determining the app's orientation. This link helped too:

http://www.agileo365.com/2019/03/building-responsiveish-powerapps.html

Thanks for getting back to me, I thought about doing it but even the App.Width/Height or App.DesignWidth/Design Height with the Screen.Orientation or App.ActiveScreen.Orientation values do not change and they seems to get stuck most of the time while rotating a device.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,992)