If you resize the app window height, the master detail page will incorrectly display the first time.
After resizing the window I would expect the master detail page to have the correct height.
After resizing the window the master detail page's height is incorrect until closing and re-opening.
https://drive.google.com/open?id=1sjSZEB7eC3rLAOyG9plHbRNK469Fjnbd
We are also getting this on our UWP app.
I guess I have the same issue.
My menu is opened always and the menu's height is incorrect until resizing the window.
I'm also noticing behavior like this
What is the status? Does it is solved ?
@samhouts I'm willing to take a look at this and submit a PR if I can figure it out if you would like to mark it as in progress.
I have a lead on the cause, but need to dig into it a little more first.
If you look at the Xamarin.Forms.Platform.UWP.MasterDetailControl line 160, the MasterSize Property.
The first thing it does is try to use the master content presenters actual height. Which appears to be the size from the last time the Master panel was displayed. Regardless of the current size of the current master panel. A simple solution appears to be to just ignore this and always start with the actual height of the MasterDetailControl. I haven't been able to figure out why the line of code below was originally added and removing it doesn't seem to impact anything in the control gallery when I test. But I'm not 100% sure if there would be a performance impact.
I'll prepare a pull request and hope that XF Team members that may be more familiar with the history of this control will review.
// Use the ActualHeight of the _masterPresenter to automatically adjust for the Master Title
double height = _masterPresenter?.ActualHeight ?? 0;
// If there's no content, use the height of the control to make sure the background color expands.
if (height == 0)
height = ActualHeight;
@bmacombe Sounds like a plan! Thanks!
Submitted PR #5338 to resolve
Most helpful comment
We are also getting this on our UWP app.