Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top tab bar on Shell hides content (iOS only) #19159

Open
BFuchshofer opened this issue Dec 1, 2023 · 2 comments
Open

Top tab bar on Shell hides content (iOS only) #19159

BFuchshofer opened this issue Dec 1, 2023 · 2 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout area-navigation NavigationPage migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@BFuchshofer
Copy link

Description

There is a problem on iOS when attempting to add content to a page with top tabs in a shell application. The top tab bar seems to overlay the content of the page. On Android, it works as expected.

For the content, I added a StackLayout with Vertical and HorizontalOptions set to "FillAndExpand." Additionally, the layout has a margin of 8. However, as you can see on iOS, there is no top margin visible.
android
ios

Steps to Reproduce

  1. Create a new Maui App.
  2. In Shell.xaml, add a <Tab> with multiple <ShellContent> and Pages (or use the same page for every content).
  3. In your used Page.xaml, add a StackLayout with VerticalOptions="FillAndExpand" and HorizontalOptions="FillAndExpand".
  4. Add a margin to the StackLayout, so you can observe the differences in margins on each side.
  5. Enhance the visual representation by adding a pleasing color to the StackLayout.
  6. Test on iOS and Android

Link to public reproduction project repository

https://github.com/BFuchshofer/Maui.iOS.TopTabBar

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17

Did you find any workaround?

No response

Relevant log output

No response

@BFuchshofer BFuchshofer added the t/bug Something isn't working label Dec 1, 2023
@Eilon Eilon added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Dec 2, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Dec 4, 2023
@ghost
Copy link

ghost commented Dec 4, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@samhouts samhouts added the migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert label Dec 6, 2023
@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jan 5, 2024
@XamlTest
Copy link

XamlTest commented Jan 5, 2024

Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on iOS 17.0, not repro on Android 14.0-API34 with below Project:
Maui.iOS.TopTabBar.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout area-navigation NavigationPage migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants