Samsung / Tizen.CircularUI

Tizen Wearable CircularUI project is to develop an open source software motivate software developer to creating Tizen Wearable Xamarin Forms app more easily and efficiently.
Other
80 stars 32 forks source link

UI offsets downwards when wrapped into NavigationPage #366

Closed CalamityDeadshot closed 3 years ago

CalamityDeadshot commented 3 years ago

Bug description When the main page of the application is wrapped into NavigationPage like MainPage = new NavigationPage(new MainPage());, the whole application off-centers downwards. This doesn't happen without NavigationPage wrapper, but clearly you can't make a decent app without navigation, amaright?

To Reproduce Steps to reproduce the behavior:

  1. In App.xaml.cs assign an instance of NavigationPage to MainPage
  2. Launch app
  3. Observe.

Expected behavior A properly centered UI.

Screenshots image The button here is properly centered in XAML, but vertically shifted. image And here the CircleListView is also off-centered.

Environment

myroot commented 3 years ago

Set false on HasNavigationBar property

https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.navigationpage.sethasnavigationbar?view=xamarin-forms#Xamarin_Forms_NavigationPage_SetHasNavigationBar_Xamarin_Forms_BindableObject_System_Boolean_

CalamityDeadshot commented 3 years ago

It's quite inconvenient to have to set this property to every single page, but anyways, thanks!