Skip to content

[ci-fix-net11] [iOS] Fix: NavigationPageChildContentExtendsUnderFloatingTabBar Test Failure - #37405

Merged
kubaflo merged 1 commit into
dotnet:net11.0from
SubhikshaSf4851:net11-Fix-iOSTest-NavigationPageChildContentExtendsUnderFloatingTabBar
Aug 14, 2026
Merged

kubaflo merged 1 commit into
dotnet:net11.0from
SubhikshaSf4851:net11-Fix-iOSTest-NavigationPageChildContentExtendsUnderFloatingTabBar

Conversation

@SubhikshaSf4851

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Failure Test on iOS handler path : NavigationPageChildContentExtendsUnderFloatingTabBar

Description of Change

On iOS/Mac Catalyst 26, the tab bar renders as a floating, translucent "glass" overlay instead of the traditional opaque bar docked to the screen edge. The old (legacy) renderer had special-case handling that allowed a page's content to extend underneath this floating tab bar so it wouldn't be clipped at the old tab bar boundary.

Root cause

Fixed in the Renderer path and merged into main, then ported to .NET 11. The Handler path never received the equivalent change, so this issue now fails on .NET 11 — NavigationPage content routed through the Handler path is clipped above the floating tab bar instead of extending behind it. This PR applies the same fix to the Handler path

This PR restores that behavior in NavigationViewHandlerToolbarHelper:

  • When running on iOS/Mac Catalyst 26+, and the page is hosted inside a visible UITabBarController whose tab bar is not hidden and translucent (i.e., the new floating glass style), EdgesForExtendedLayout now also includes UIRectEdge.Bottom.
  • This matches the Renderer's behavior, so content extends underneath the floating tab bar instead of stopping short of it.
  • Existing behavior for opaque/non-floating tab bars (and for OS versions prior to 26) is unchanged.

Renderer handling reference: #35523

Why no tests added :

  • No new automated test was added in this PR because the existing UI test NavigationPageChildContentExtendsUnderFloatingTabBar  already covers this behavior — it was the test that started failing in net11 CI, which is what prompted this fix. Rather than adding a new test, this PR restores the passing behavior of that existing test

Tested the behavior in the following platforms

  • Windows
  • Android
  • iOS
  • Mac
Before Issue Fix After Issue Fix
Simulator Screenshot - iPhone 11 Pro - 2026-08-13 at 18 13 31 Simulator Screenshot - iPhone 11 Pro - 2026-08-13 at 18 07 31

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37405

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37405"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Aug 13, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@SubhikshaSf4851! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Aug 13, 2026
@SubhikshaSf4851 SubhikshaSf4851 changed the title [WIP][ci-fix-net11] [iOS] Fix: NavigationPageChildContentExtendsUnderFloatingTabBar Test Failure [ci-fix-net11] [iOS] Fix: NavigationPageChildContentExtendsUnderFloatingTabBar Test Failure Aug 13, 2026
@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests , maui-pr-devicetests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns the handler-based NavigationPage iOS/MacCatalyst layout behavior with the legacy renderer on iOS/Mac Catalyst 26+ so page content can extend beneath the new floating, translucent tab bar (restoring the expected UI layout and addressing the failing UI test scenario described in the PR).

Changes:

  • Refactors EdgesForExtendedLayout assignment to use a local edges variable derived from navigation bar translucency.
  • On iOS/Mac Catalyst 26+, when hosted in a visible, translucent UITabBarController, adds UIRectEdge.Bottom so content extends behind the floating tab bar.
  • Keeps pre-26 and non-floating/opaque tab bar behavior unchanged.

@kubaflo
kubaflo merged commit b2e1327 into dotnet:net11.0 Aug 14, 2026
137 of 152 checks passed
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Aug 14, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b82faf94 Deployed Aug 13, 2026 by SubhikshaSf4851 via conclusion #1278
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-shell community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants