Broken master detail on iPad

MikilllMikilll ✭✭✭Member ✭✭✭
edited August 2018 in Xamarin.Forms

Hello. I have just downloaded from this page
https://github.com/xamarin/xamarin-forms-samples/tree/master/Navigation/MasterDetailPage
code to create a master-detail page. When I run this code I have noticed that master-detail page is behaving very strange on iPad. Look at the gif below:

?

(I changed the background color of the master page to green to better visualize this bug.)

When I am changing the orientation of a device, the master page is behaving very strange. You can see that the white space on the left is appearing. Is it a known bug in Xamarin Forms? Does anyone know some workaround to prevent this strange behavior?

Answers

  • ColeXColeX Xamurai Member, Xamarin Team Xamurai

    I reproduced this issue on my side and reported it in Github.

    Let's wait for response.

  • ColeXColeX Xamurai Member, Xamarin Team Xamurai
    edited August 2018

    Set MasterBehavior = MasterBehavior.Popover; in the MainPage.xaml.cs constructor.

    Check the workaround here : https://github.com/xamarin/xamarin-forms-samples/issues/359#issuecomment-415403950

  • KotaAraiKotaArai Member

    The issue seems to be with Xamarin.Forms (Ver.3.0.XXXXXX).

    Try these steps:
    1. Downgrade your target projects (Android, iOS, and UWP) to Xamarin.Forms 2.5.1.527436
    2. Close Visual Studio
    3. Delete bin/obj folders
    4. Open Visual Studio and open solution
    5. Clean and rebuild your project.

Sign In or Register to comment.