dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.24k stars 1.76k forks source link

Mac Catalyst loses Shell Content items under Tabs only when maximized #15057

Open johnandrewoehler opened 1 year ago

johnandrewoehler commented 1 year ago

Description

In my Mac Catalyst app, I am using Shell navigation. The FlyoutItems content contains both ShellContent items, and Tab items with ShellContent items in them. For the Tab items, everything works fine as long as the screen isn't maximized - OR - if it's maximized first before access the Tab menu items.

If I access the Tab shell item in a normal (non-maximized) window state, they appear as a list across the top of the screen. If I maximize the window after accessing them, then the sub-shell items dissappear.

Menu structure displayed in flyout menu:

image

After clicking on Patient Maintenance:

image

And then after maximizing the window:

image

The other options dissappear.

Steps to Reproduce

  1. Clone the test repo
  2. Start app and click on "Patient Maintenance"
  3. Maximize the window
  4. Notice how the sub-items (except the first one, "Patients") don't display anymore

Link to public reproduction project repository

https://github.com/johnandrewoehler/CatalystShellMenuTest

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

macOS Ventura 13.3.1

Did you find any workaround?

No response

Relevant log output

No response

Zhanglirong-Winnie commented 10 months ago

Verified this issue with VSMac 17.6.8.400. Not repro on Maccatalyst platforms. The provided example project is empty, use the following project to reproduce this issue: maui-samples/8.0/Fundamentals/Shell at main · dotnet/maui-samples (github.com). image