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

Horizontal sizing of Picker view

$
0
0

When using a horizontally centered Picker (HorizontalOptions is either Center or CenterAndExpand), changing the selected value results in the text in the Picker being clipped. This happens across platforms, so I don't know if it's a Xamarin issue, or whether I'm just missing something from my code.

I don't want to left-justify the Picker that I am using. Does anybody know how to overcome this clipping?

It is easily reproduced. Just tweak the FormsGallery sample to set HorizontalOptions, as below:

        Picker picker = new Picker
        {
            Title = "Color",
            VerticalOptions = LayoutOptions.CenterAndExpand,
            HorizontalOptions = LayoutOptions.CenterAndExpand
        };

Run the sample and select different values.

I am using Xamarin.Forms 1.4

Many thanks,

John H.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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