Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Initial size of RelativeLayout on portrait iPad has Landscape width, after rotations all is well.

$
0
0

(using latest nuget-version of X.F)

I have a contentpage that is the main window of an app. The contentpage has a stacklayout, which as a first element has a relativelayout, and the second element is a frame. The relativeLayout has a fixed height, and its horizontal options are set to FillAndExpand (but other settings do not fix the problem).

The strange thing is: the relativelayout is sized as the width of the iPad (simulator) in landscape size. Then, if I rotate the iPad, everyting renders OK, also if I rotate back to portrait.

If I start the iPad in Landscape mode, then it works fine, too.

The second element (the frame), is always positioned correctly.

What could this be?

Best regards,

Hugo Logmans


Viewing all articles
Browse latest Browse all 58056

Trending Articles