Skip to content

Clarify legacy Shell renderer arrange no-ops - #38108

Merged
kubaflo merged 1 commit into
net11.0from
jfversluis-clarify-shell-arrange-no-ops
Sep 2, 2026
Merged

kubaflo merged 1 commit into
net11.0from
jfversluis-clarify-shell-arrange-no-ops

Conversation

@jfversluis

Copy link
Copy Markdown
Member

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

Clarifies the intentionally empty IViewHandler.PlatformArrange implementations in the legacy Android and iOS ShellRenderer classes and removes their stale speculative TODOs.

IPlatformViewHandler inherits IViewHandler, so both compatibility renderers must implement PlatformArrange. They intentionally do no work because native layout is already owned elsewhere: Android arranges the flyout root from OnElementSizeChanged, while iOS uses the view controller hierarchy and ViewDidLayoutSubviews.

No layout behavior changes.

Validation

  • Controls.Core.csproj builds for net11.0-android37.0
  • Controls.Core.csproj builds for net11.0-ios26.5

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 2, 2026 09:48
@github-actions

github-actions Bot commented Sep 2, 2026

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 -- 38108

Or

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

@azure-pipelines

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The change is comment-only and the new explanations match the existing layout code paths (e.g., Android OnElementSizeChanged does the actual measure/layout).

Review tier: Lite
Findings: None

What changed in this PR

This PR clarifies that the legacy compatibility ShellRenderer implementations of IViewHandler.PlatformArrange on Android and iOS are intentional no-ops, and replaces a speculative TODO with an explanation of where native layout is actually owned.

Changes:

  • Replaced stale “TODO I don't think we need this” comments with explicit rationale in iOS ShellRenderer’s PlatformArrange no-op.
  • Replaced the same stale TODO with an Android-specific rationale pointing to OnElementSizeChanged performing measure/layout.
File Description
src/​Controls/​src/​Core/​Compatibility/​Handlers/​Shell/​iOS/​ShellRenderer.cs Replaces a speculative TODO with a concise explanation that layout is owned by the view controller hierarchy.
src/​Controls/​src/​Core/​Compatibility/​Handlers/​Shell/​Android/​ShellRenderer.cs Replaces a speculative TODO with a concise explanation that the flyout root layout is handled by OnElementSizeChanged.

@kubaflo
kubaflo merged commit 20b036e into net11.0 Sep 2, 2026
36 of 40 checks passed
@kubaflo
kubaflo deleted the jfversluis-clarify-shell-arrange-no-ops branch September 2, 2026 14:00
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Sep 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 6d26e4a7 Deployed Sep 2, 2026 by jfversluis via conclusion #1696
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android platform/ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants