Repository navigation
Conversation
<!-- 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
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40128Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40128" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 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
NavigationRendererprefer 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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR Test Gate
🧪 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. |
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit 7ab85d3.
45aba0e
into
dotnet:candidate/11.0.1xx-sr2
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
…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>
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.
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
_navigationBarHeightpreference inToolbarHeight. 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.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