xamarin/Xamarin.Forms

Page.UseSafeArea="true" not respected on all pages inside a CarouselPage

Aperta

#3837 aperta il 19 set 2018

 (1 commento) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/layoute/4 :clock4:help wantedinactivet/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

When creating a CarouselPage with more than 2 ContentPages within it. The Page.UseSafeAre is only respected on the first two pages.

Steps to Reproduce

  1. Create an empty Xamarin.Forms project
  2. Change the MainPage to a CarouselPage
  3. Add more than 2 ContentPages, with each ContentPage having this: xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" ios:Page.UseSafeArea="true" and some content on it.
  4. Start iOS simulator for an iPhone X(s/r)

Expected behavior

It should be expected that the "notch" area will be discarded and that the content starts below it.

Actual Behavior

For the first two pages the notch area is discarded. But for every other page it is not.

Basic Information

Xamarin.Forms 3.2.0.839982 Simulator device: iPhone XR iOS 12.0

Screenshots

First two pages:

Every other page:

Guida contributor