Bug 32067 - MasterBehavior is not consistently obeyed in MasterDetailPage
Summary: MasterBehavior is not consistently obeyed in MasterDetailPage
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Rui Marinho
Depends on:
Reported: 2015-07-17 07:45 UTC by Joseph Redfern
Modified: 2015-07-28 08:20 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Joseph Redfern 2015-07-17 07:45:41 UTC
Setting the MasterBehavior of a MasterDetailPage to MasterBehavior.SplitOnLandscape is not consistently obeyed on some devices.

The behavior works as expected on an ASUS Transformer Pad (10" tablet) - that is, the Master view operates in Pop-over mode while in portrait, and is permanently split in landscape mode.

However, On an Asus MeMO Pad (8" Tablet, same screen res as Transformer Pad), this behavior is not consistently applied. From my testing, it seems that the behavior works as expected *if the app was started in portrait mode*, however, if the app was started in Landscape mode, the the popover behavior is applied in both screen orientations.
Comment 1 Rui Marinho 2015-07-22 20:06:00 UTC
Can you check if the DeviceIdiom you get is the same for both devices.

Comment 2 Joseph Redfern 2015-07-27 10:45:29 UTC
Hi, sorry for the delayed response.

The larger device is correctly reported as a Tablet. The smaller device is being reported as a Phone (even though it most certainly is a tablet!). 

How are devices assigned idioms? Regardless of whether you class the device as a tablet/phone, the behavior varying according to start-up orientation seems to be a bug.

Comment 3 Rui Marinho 2015-07-27 11:47:14 UTC
What version of XF are you usin? 
Can you try the latest prerelease and see what's the DeviceIdiom reported ? 

Comment 4 Joseph Redfern 2015-07-27 11:48:09 UTC
I'll give that a go, and get back to you tomorrow morning (GMT+1).

Comment 5 Joseph Redfern 2015-07-28 03:56:36 UTC
Hi Rui,

This seems to be fixed with the latest version of XF (the full, non-prerelease version was released after your comment), so this issue can now be closed.

Comment 6 Udham Singh 2015-07-28 08:20:27 UTC
Thank you @Joseph for the confirmation.

As per comment 5, I am marking this issue as VERIFIED-FIXED.