MasterDetailPage on Android Tablet problem (right border not clickable)

AcherCyrilAcherCyril USMember
edited April 2015 in Xamarin.Forms

Hi
I'm using a MasterDetailPage and just notice that a small button wasn't clickable under android.
Took me some time to realize that it was all the right border of the screen that wasn't clickable.

To reproduce:
In the "FormsGallery" project of the "xamarin-forms-samples-master" Git
Edit the file NamedColorPage.cs and change the content to :

// Build the page
            this.Content = new StackLayout
            {
                Children = 
                {
                    new StackLayout
                    {   
                        HorizontalOptions = LayoutOptions.Center,
                        VerticalOptions = LayoutOptions.CenterAndExpand,
                        Children = 
                        {
                            CreateLabel("Color.R", "R = {0:F2}"),
                            CreateLabel("Color.G", "G = {0:F2}"),
                            CreateLabel("Color.B", "B = {0:F2}")
                        }
                    },
                    boxView,
                    new StackLayout
                    {   
                        HorizontalOptions = LayoutOptions.Center,
                        VerticalOptions = LayoutOptions.CenterAndExpand,
                        Children = 
                        {
                            CreateLabel("Color.Hue", "Hue = {0:F2}"),
                            CreateLabel("Color.Saturation", "Saturation = {0:F2}"),
                            CreateLabel("Color.Luminosity", "Luminosity = {0:F2}")
                        }
                    }**,
                    new Grid()
                    {
                        BackgroundColor = Color.Green,
                        Children =
                        {
                            new Button() { Text = "Test", BackgroundColor= Color.Red, HorizontalOptions = LayoutOptions.End , WidthRequest=300}
                        }
                    }**

                }
            };

In landscape when the Master page is always visible, you will notice that the right border of the button is not clickable.
I've done the test on my Galaxy Tab 3 and on a VM
Is there any known workaround ?

BR
Cyril

Answers

Sign In or Register to comment.