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

Label + ScrollView wrong display in Xamarin.Forms 1.2.2

$
0
0

ref link : http://forums.xamarin.com/discussion/comment/73099#Comment_73099

the code following display different in Xamarin.Forms old version and 1.2.2

                var stringLRC = "..."; //very very long, Lyric.
                var label_lrc = new Label() { Text = stringLRC, LineBreakMode= LineBreakMode.WordWrap, VerticalOptions = LayoutOptions.FillAndExpand};

                var lrc_ScrollView = new ScrollView()
                {
                    HorizontalOptions = LayoutOptions.FillAndExpand
                    , VerticalOptions = LayoutOptions.CenterAndExpand
                    , HeightRequest = Device.OnPlatform(200, 250, 250)
                    , Padding = new Thickness(10, 0, 10, 0)
                    , Content = label_lrc                       
                };

In old version, the label only display in the ScrollView. First Picture;

In 1.2.2 version, the label display outside the ScrollView. Second Picture.

I need attach the first one in versiont 1.2.2, what should I do?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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