Join GitHub today
[A] Check for parent NavigationPage when setting MDP detail's TopPadding #473
Description of Change
Additional top padding was being added onto a MasterDetailPage's detail when inside of a NavigationPage in AppCompat, presumably from the calculations that the NavigationPage itself was already doing. This additional status bar height being set as padding can be avoided by checking to see if the parent is a NavigationPage or not.
Gallery reproduction added, although it's a visual issue.
@pauldipietro I think you need to add this check to Master as well if it's in splitscreen mode. In tablets for example, both master and detail could appear side by side.
Add the same check to
referenced this pull request
Nov 3, 2016
This does not fix the problem for the Master when in "Split" mode.
If someone needs a fix right now, (as horrible as it may be) just use the following renderer: