Repository navigation
Clarify legacy Shell renderer arrange no-ops - #38108
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:48 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38108Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38108" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:48 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:49 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:51 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:53 — with
GitHub Actions
Inactive
jfversluis
temporarily deployed
to
copilot-pat-pool
September 2, 2026 09:53 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
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’sPlatformArrangeno-op. - Replaced the same stale TODO with an Android-specific rationale pointing to
OnElementSizeChangedperforming 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
approved these changes
Sep 2, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.PlatformArrangeimplementations in the legacy Android and iOSShellRendererclasses and removes their stale speculative TODOs.IPlatformViewHandlerinheritsIViewHandler, so both compatibility renderers must implementPlatformArrange. They intentionally do no work because native layout is already owned elsewhere: Android arranges the flyout root fromOnElementSizeChanged, while iOS uses the view controller hierarchy andViewDidLayoutSubviews.No layout behavior changes.
Validation
Controls.Core.csprojbuilds fornet11.0-android37.0Controls.Core.csprojbuilds fornet11.0-ios26.5