Skip to content

[iOS 26+] Fix NavigationPage.TitleView vertical offset and clipping - #40128

Merged
kubaflo merged 2 commits into
dotnet:candidate/11.0.1xx-sr2from
sheiksyedm:sheiksyedm-ios-titleview-clipping
Nov 10, 2026
Merged

kubaflo merged 2 commits into
dotnet:candidate/11.0.1xx-sr2from
sheiksyedm:sheiksyedm-ios-titleview-clipping

Conversation

@sheiksyedm

@sheiksyedm sheiksyedm commented Nov 10, 2026 •

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!

Description of Change

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS 26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44 pt high. Initializing the title container to the full bar height causes UIKit to position its wrapper at y = -5, clipping the top of the title.

  • Initialize the title container using the navigation bar's width and the title-height fallback, rather than the full bar height.
  • In NavigationRenderer, use the attached superview's height instead of prioritizing the cached navigation-bar height.
  • Apply the initial-height correction to NavigationViewHandler as well.
  • Preserve the iOS 26 autoresizing-mask workaround and navigation-bar layout-change tracking.
  • Add regression coverage for automatic, short, and tall title views, exercised against both navigation implementations.

Regression origin

The likely introducing change is dotnet/maui#32798, the .NET 10 servicing backport of dotnet/maui#32341 ("Fix iOS 26 TitleView covering content in Shell and NavigationPage").

Commit 3218849 introduced both the full-bar-height initial frame and the cached _navigationBarHeight preference in ToolbarHeight. The change is absent from MAUI 10.0.10 and present in 10.0.11, matching the reported first failing version. This attribution is based on source and release ancestry, not a parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it corrects the assumption that the title area must have the same height as the full navigation bar.

Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17 Pro simulator running iOS 26.5, with UINavigationBar.ClipsToBounds = true. "Before" is the unfixed local framework build, not a separate MAUI 9 package run.

Before fix — title clipped After fix — title visible
Before fix: Czech title clipped at the top; container height 54 pt and wrapper y minus 5 pt After fix: Czech title and diacritics visible; container height 44 pt and wrapper y zero

The navigation bar remains 54 pt high in both runs. The title container changes from 54 pt to 44 pt, and the wrapper moves from y = -5 to y = 0.

Issues Fixed

Fixes #40068

github-actions Bot and others added 2 commits November 10, 2026 02:07
<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!
<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [ ] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

<!-- maui-release-state:production:11.0.1xx-sr2 -->

Advance canonical **`eng/release-rollover.json`** from SR1 to SR2 after
verified staging, reviewed normalization and next-lane preparation.

Staged source: `01c74ef93c991830e310a77ec808b51b29bcac1f`. Next
candidate: `candidate/11.0.1xx-sr2`. Next inflight:
`inflight/11.0.1xx-sr3`.
No real release branch or servicing review is required for this state
update. Independently, the publication workflow opens a servicing PR
against staging; after reviewing it and using Create a merge commit, a
maintainer manually cuts the real release at that exact merge. Staging
alone never authorizes signing.

Only `currentSr` changes. `nightlyMode` remains **legacy**; SDK, package
metadata, branch roles, release contents and access rules are unchanged.

**Review and required CI are mandatory. Automation never updates the
default branch, approves, retargets or merges this PR.**
If nightlyMode is already versioned, advancing currentSr also selects
the following inflight lane. Before merging, verify that exact lane has
its protections, internal mirror, schedule, signed artifacts and
existing feed/channel wiring deployed.
The first legacy-to-versioned switch is a separate owner-reviewed state
change after that deployment evidence exists; this PR does not guess or
certify it.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

N/A - staged release configuration.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Use the title-area height instead of the full navigation bar height to prevent clipped titles on iOS 26 and later. Preserve initial width sizing for both navigation implementations and add regression coverage for automatic, short, and tall title views.

Fixes dotnet#40068
Copilot AI balanced review requested due to automatic review settings November 10, 2026 08:46
@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 -- 40128

Or

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

@azure-pipelines

This comment has been minimized.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Nov 10, 2026
@github-actions github-actions Bot added area-navigation NavigationPage platform/ios platform/macos macOS / Mac Catalyst labels Nov 10, 2026

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.

🔵 Needs a closer look

UIKit-controlled title sizing requires device validation of both navigation implementations on iOS 26+ and MacCatalyst, with results still missing for rotation, visibility transitions, and bar-height changes.

No open issues 🎉

What changed in this PR

Fixes the iOS 26+ NavigationPage.TitleView vertical offset and clipping reported in #40068 by separating title-area height from the full navigation-bar height.

Changes:

  • Initialize title containers with the navigation-bar width and a title-height fallback in both navigation implementations.
  • Make NavigationRenderer prefer the attached superview’s height while preserving autoresizing behavior and bar-layout tracking.
  • Add regression coverage for automatic, short, and tall title views against both navigation implementations.
File Description
src/​Controls/​tests/​DeviceTests/​Elements/​NavigationPage/​NavigationPageTests.iOS.cs Adds parameterized checks that title containers remain within a clipped navigation bar.
src/​Controls/​src/​Core/​Platform/​iOS/​NavigationViewHandlerToolbarHelper.cs Uses the title-height fallback for the initial container frame.
src/​Controls/​src/​Core/​Compatibility/​Handlers/​NavigationPage/​iOS/​NavigationRenderer.cs Corrects initial and attached title sizing while retaining bar-height change tracking.

Review effort: Balanced

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 10, 2026
@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@MauiBot

MauiBot commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@sheiksyedm — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform iOS


🧪 Gate analysis — click to expand

⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect.

No interpretable test-group summary was produced. No additional test execution is inferred.

Setup did not capture a verified PR head; no commit is claimed as tested.

No immutable without-fix baseline was prepared.

@github-actions github-actions Bot 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.

Expert Review — 0 findings

Reviewed commit 7ab85d3.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 10, 2026
@kubaflo
kubaflo changed the base branch from main to candidate/11.0.1xx-sr2 November 10, 2026 21:16
@kubaflo
kubaflo merged commit 45aba0e into dotnet:candidate/11.0.1xx-sr2 Nov 10, 2026
43 of 164 checks passed
kubaflo added a commit that referenced this pull request Nov 11, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 13, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 16, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 16, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 17, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 18, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 18, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 18, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 19, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 22, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 23, 2026
…40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
@kubaflo kubaflo added this to the .NET 11 SR2 milestone Nov 24, 2026
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Nov 26, 2026
…otnet#40128)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[dotnet#32798](dotnet#32798), the .NET
10 servicing backport of
[dotnet#32341](dotnet#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](dotnet@3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](dotnet#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes dotnet#40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 7ab85d39 Deployed Nov 10, 2026 by sheiksyedm via conclusion #2860
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-navigation NavigationPage partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios platform/macos macOS / Mac Catalyst

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS 26+/27] NavigationPage.TitleView container is sized to the navigation bar frame height, shifted up by 5 pt and clipped (regression vs .NET 9)

4 participants