Hi Guys,
I made an application with screen aspect ratio lock turned off. (https://powerapps.microsoft.com/hu-hu/tutorials/set-aspect-ratio-portrait-landscape/)
I tried to make a header image with the screen width and calculate the height, based on image original aspect ratio.
Image1.Width = Screen1.Width
Image1.Height = Round(Image1.Width * (Image1.OriginalHeight/Image1.OriginalWidth); 0)
Image1.CalculateOriginalDimensions = true
Image1.ImagePosition = ImagePosition.Fit
The image width is ok, it is as wide as the screen.
But, the Screen1.Width is always equal to 640, so the calculated height is always the same value.
If i put the Screen1.Width and Screen1.Height into textbox, it displays 640x1136 always (9:16). I have an Nexus5 phone, screen size: 1080x1776 (9.7:16).
Could someone help me?
Imre