xamarin/Xamarin.Forms

[iOS] Wrong Page Height when Navigation Bar is Hidden

Ouverte

#3 932 ouverte le 28 sept. 2018

 (1 commentaire) (0 réaction) (0 personne assignée)C# (1 926 forks)batch import
e/4 :clock4:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Métriques du dépôt

Stars
 (5 644 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur