Hey,
I want to build responsive Power Apps and checked out this documentation:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-responsive-layout
I am especially interested in Apps for phone and tablet and rearranging the controls when the orientation is changed like it is described at the end of the article (https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-responsive-layout)
It seems there that the "orientation" property would change by rotating the phone and is used as a flag as to which layout should be used.
e.g.
| Upper | Width | If(Parent.Orientation = Layout.Vertical, Parent.Width, Parent.Width / 2) |
| Upper | Height | If(Parent.Orientation = Layout.Vertical, Parent.Height / 2, Parent.Height) |
But here is my problem: althoug the actual orientation of the app changes when I rotate my phone the value of the "orientation" property stays the same (i.e. the formulas above don't change their result).
Is there something I am missing? For now I just compare the current height and width:
If(App.Height > App.Width; Parent.Width; Parent.Width / 2)
But this seems inelegant and not as it is designed to function.
Does anybody have an idea?
Philipp