xamarin/Xamarin.Forms

[iOS] Wrong Page Height when Navigation Bar is Hidden

開放

#3,932 建立於 2018年9月28日

 (1 則留言) (0 個反應) (0 位負責人)C# (1,926 個分叉)batch import
e/4 :clock4:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

倉庫指標

星標
 (5,644 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南