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

Forms' grid not working as expected on iOS

$
0
0

Hi!

I have a single-row grid layout with 5 items in it, each has no size constraint (or have equal, it doesn't matter the behavior is the same).
Each element is an image, except the middle one (with index 2 to be precise) which is a button with no text, just an image in it.
All grid elements have their both horizontal and vertical layout options set to LayoutOptions.Center.
The problem is when the other images display well, the middle (button) one is disrupted (should be exactly in the middle of the screen), just like that:

image

Also I have a slight suspicion the image was also resized not preserving aspect ratio.

This all works fine on Android or when I change the Button to Image, just like this:

image

Any ideas ?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>