xamarin/Xamarin.Forms

[iOS] Wrong Page Height when Navigation Bar is Hidden

Aberta

#3.932 aberto em 28 de set. de 2018

 (1 comentário) (0 reação) (0 responsável)C# (1.926 forks)batch import
e/4 :clock4:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Métricas do repositório

Stars
 (5.644 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Description

it seems xamarin.forms used wrong page height if hide navigation bar.

as my example:

  1. when show navigation bar, there is safeAreaInsets at bottom, and 3 point for margin. which works great simulator screen shot - iphone x - 2018-09-28 at 17 17 27

  2. however, if hide the navigation bar, it will show like this: simulator screen shot - iphone x - 2018-09-28 at 17 17 43 safeAreaInsets and margin-bottom is missing.

it seems because of wrong page height.

Expected Behavior

safeAreaInsets and margin-bottom should be there when hide navigation bar.

Screenshots

https://user-images.githubusercontent.com/211855/46199903-d09ce080-c342-11e8-814a-e6d1ce9167ae.png https://user-images.githubusercontent.com/211855/46200034-2f625a00-c343-11e8-8e48-a9a727f80fe2.png

Reproduction Link

navgation-page-demo.zip

Guia do colaborador