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

Shell Tab is still visible after set Tab.IsVisible to false #24161

Merged
merged 19 commits into from
Aug 31, 2024

Conversation

SuthiYuvaraj
Copy link
Contributor

@SuthiYuvaraj SuthiYuvaraj commented Aug 12, 2024

Root Cause

When the visibility of the TabItem is changed dynamically, TabBar needs to be updated to reflect the TabBar items count, but hiding the visible TabItem updates the TabContent but doesn't automatically adjust the tab count.

Description of Change

Each time the DisplayedPage is modified,we have updated the TabBar items count through setupmenu().

Issues Fixed

Fixes #8788
Fixes #23717
Fixes #23780

Screenshots

Before:

Recording.2024-08-20.130548.mp4

After:

Recording.2024-08-20.130401.mp4

@SuthiYuvaraj SuthiYuvaraj requested a review from a team as a code owner August 12, 2024 15:07
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Aug 12, 2024
@jfversluis
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

PureWeen commented Aug 13, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis
Copy link
Member

@SuthiYuvaraj anything I can help you with for this one?

Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the snapshots are ready

@SuthiYuvaraj SuthiYuvaraj marked this pull request as draft August 16, 2024 09:31
@SuthiYuvaraj
Copy link
Contributor Author

@dotnet-policy-service agree

@SuthiYuvaraj SuthiYuvaraj marked this pull request as ready for review August 22, 2024 13:12
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@@ -0,0 +1,24 @@
#if ANDROID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we run this test on iOS and Windows also?

I realize the bug only talks about android but since this code is relevant on all platforms, it's ideal to have a test that runs on all three

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@samhouts samhouts added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Aug 27, 2024
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@@ -357,6 +357,10 @@ void GoTo(ShellSection shellSection)
if (shellSection == null || _currentSection == shellSection)
return;
var renderer = RendererForShellContent(shellSection);

if (renderer == null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next time when we can lets use the is null .

@rmarinho
Copy link
Member

Failing test not related

@rmarinho rmarinho merged commit 1dfe609 into dotnet:main Aug 31, 2024
95 of 97 checks passed
@SuthiYuvaraj SuthiYuvaraj changed the title 894511 : Shell Tab is still visible after set Tab.IsVisible to false Shell Tab is still visible after set Tab.IsVisible to false Sep 2, 2024
PureWeen added a commit that referenced this pull request Sep 3, 2024
@samhouts samhouts added fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Sep 5, 2024
@samhouts samhouts added fixed-in-9.0.0-rc.2.24503.2 and removed fixed-in-net9.0-nightly This may be available in a nightly release! fixed-in-net8.0-nightly This may be available in a nightly release! labels Oct 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution fixed-in-9.0.0-rc.2.24503.2
Projects
None yet
5 participants