Repository navigation
[Android] Revert ScrollView safe-area behavior change and dependent baseline - #40539
Merged
kubaflo merged 1 commit intoNov 23, 2026
Merged
Conversation
kubaflo
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:36 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:36 — with
GitHub Actions
Inactive
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.
kubaflo
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:37 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:39 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:41 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:41 — with
GitHub Actions
Inactive
This was referenced Nov 23, 2026
kubaflo
added a commit
that referenced
this pull request
Nov 23, 2026
#40541) <!-- 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! ### 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 | - [x] 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 #40389 added an unconditional `SetClipToPadding(false)` to the Android `ScrollViewHandler`. That changed rendering for every Android `ScrollView` with safe-area padding, without an opt-in, and was reverted by #40539 (analysis: #37306 (comment)). None of the existing 31 expert-reviewer dimensions flags this: #12 covers API removal and Xamarin migration, and #14 covers restore-on-clear of native defaults. This PR adds dimension **#32 Behavioral Change Disclosure `[major]`** to `maui-expert-reviewer.md`: - It flags unconditional native-default overrides in `CreatePlatformView`/`ConnectHandler`, changed default values, modified `snapshots/**` baselines, and observable event order/timing changes. - Every finding must state the before → after behavior, the triggering configuration, and the missing opt-in/opt-out. - Servicing targets need an opt-in that keeps the old behavior by default; `main` needs an opt-out plus a breaking-change note. Aligning with native behavior is not a reason to skip the opt-in. - Routing: `src/{Core,Controls,Essentials}/src/**` → #32; `src/Controls/tests/*/snapshots/**` images → #32 and Regression Prevention. - Its severity is capped at `[major]`, like #31. The trusted collector `.github/scripts/Review-Expert.ps1` is updated to match: the dimension bounds go from 31 to 32, the two routing rules are added, the `[major]` cap is enforced for #32, and the routing-section SHA256 pin is recomputed. The adapter and docs now say 32. No `.lock.yml` changes are needed. **Validation** (pwsh, loading the script's functions from its AST): - Recomputing the routing hash on `main`'s rulebook reproduces the old pin `b1cf5130…`. The new pin is `f565395e…`. - `Get-ExpertDimensionNames` → 32 names; #32 = "Behavioral Change Disclosure". - `Get-ExpertExpectedDimensions` for #40389's files → includes 32. For #40512's refreshed snapshot PNG → `5,6,16,32`. For a docs-only change → `5,6,16`, unchanged. - `Get-ExpertDimensions @(1..32)` passes; `@(33)` is rejected. - `git diff --check` is clean. ### Issues Fixed Relates to #37306 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
added a commit
that referenced
this pull request
Nov 23, 2026
…aseline (#40539) <!-- 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 | - [x] 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). This is a coordinated rollback on `candidate/11.0.1xx-sr2`, where both reverted PRs landed. Their changes are not present on `net11`. 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 --> Restore the Android ScrollView behavior from before #40389 while the compatibility impact and any future opt-in/opt-out design are considered. Revert, in reverse dependency order: - #40512 (`e3c8b2ec8cb9e6e78a4ddf90aca9dda177c27aa5`): restore the previous `android-notch-36/Issue35410_Landscape.png` baseline. - #40389 (candidate commit `93995479185ce7594f4b771cc99a26745e0d23e7`): remove the unconditional `SetClipToPadding(false)` and remove the device test requiring content to draw under safe-area padding. **Behavior:** ordinary Android ScrollViews once again use Android's default padding clipping. Scrolling content no longer draws into the native safe-area/keyboard padding bands. Existing special-case behavior, including Shell flyout overrides, is unchanged. The three changed paths exactly match their versions immediately before #40389. The original issue #37306 is intentionally no longer fixed by this change. The earlier #39898 landscape/notch fix and all unrelated changes are preserved. Searches for #40389, #37306, clipping-related follow-ups, and subsequent changes to the affected paths identified #40512 as the only merged dependent follow-up. No feature flag or review-workflow changes are included. **Validation** - `git diff --cached --check` - passed. - `git diff --cached --quiet 9399547^ -- src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.Android.cs src/Controls/tests/TestCases.Android.Tests/snapshots/android-notch-36/Issue35410_Landscape.png` - passed; exact pre-change source/test/baseline restoration. - `dotnet format whitespace --folder --include src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs --verify-no-changes` - passed. - `dotnet build Microsoft.Maui.BuildTasks.slnf -c Release -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:q` - passed. - `pwsh -NoProfile -File .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform android -TestFilter 'Category=ScrollView' -Rebuild -OutputDirectory <session-artifacts>/scrollview-rollback-final -Timeout 00:10:00` - passed, **13 passed / 0 failed / 0 skipped**, Release arm64 Android API 34 emulator; verified from fresh result XML. The same full-rebuild command with the candidate's production handler temporarily restored also passed 13/13. The final source contains the rollback. Earlier incremental attempts encountered a missing-result-file error and `DoesNotLeak` GC failures (12/13); these are disclosed rather than counted as passing. Both full-rebuild comparison runs passed. The full-solution formatter could not complete with missing unrelated project references and was stopped; the targeted formatting check above passed. The default all-platform BuildTasks command failed because the installed Apple workloads support 27.2 rather than the branch's 27.0; the Android-scoped prerequisite build passed without repository configuration changes. The API 36 notch screenshot UI test was **not run locally**; its baseline is restored byte-for-byte, and CI still needs to validate that configuration. ### 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. --> Reverts #40389 and its dependent baseline update #40512. Related: #37306, #35410, #39898, #40116. <!-- 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: Copilot App <223556219+Copilot@users.noreply.github.com>
Open
3 tasks
3 tasks
devanathan-vaithiyanathan
pushed a commit
to devanathan-vaithiyanathan/maui
that referenced
this pull request
Nov 24, 2026
dotnet#40541) <!-- 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! ### 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 | - [x] 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 dotnet#40389 added an unconditional `SetClipToPadding(false)` to the Android `ScrollViewHandler`. That changed rendering for every Android `ScrollView` with safe-area padding, without an opt-in, and was reverted by dotnet#40539 (analysis: dotnet#37306 (comment)). None of the existing 31 expert-reviewer dimensions flags this: #12 covers API removal and Xamarin migration, and #14 covers restore-on-clear of native defaults. This PR adds dimension **#32 Behavioral Change Disclosure `[major]`** to `maui-expert-reviewer.md`: - It flags unconditional native-default overrides in `CreatePlatformView`/`ConnectHandler`, changed default values, modified `snapshots/**` baselines, and observable event order/timing changes. - Every finding must state the before → after behavior, the triggering configuration, and the missing opt-in/opt-out. - Servicing targets need an opt-in that keeps the old behavior by default; `main` needs an opt-out plus a breaking-change note. Aligning with native behavior is not a reason to skip the opt-in. - Routing: `src/{Core,Controls,Essentials}/src/**` → #32; `src/Controls/tests/*/snapshots/**` images → #32 and Regression Prevention. - Its severity is capped at `[major]`, like #31. The trusted collector `.github/scripts/Review-Expert.ps1` is updated to match: the dimension bounds go from 31 to 32, the two routing rules are added, the `[major]` cap is enforced for #32, and the routing-section SHA256 pin is recomputed. The adapter and docs now say 32. No `.lock.yml` changes are needed. **Validation** (pwsh, loading the script's functions from its AST): - Recomputing the routing hash on `main`'s rulebook reproduces the old pin `b1cf5130…`. The new pin is `f565395e…`. - `Get-ExpertDimensionNames` → 32 names; #32 = "Behavioral Change Disclosure". - `Get-ExpertExpectedDimensions` for dotnet#40389's files → includes 32. For dotnet#40512's refreshed snapshot PNG → `5,6,16,32`. For a docs-only change → `5,6,16`, unchanged. - `Get-ExpertDimensions @(1..32)` passes; `@(33)` is rejected. - `git diff --check` is clean. ### Issues Fixed Relates to dotnet#37306 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
devanathan-vaithiyanathan
pushed a commit
to devanathan-vaithiyanathan/maui
that referenced
this pull request
Nov 24, 2026
…aseline (dotnet#40539) <!-- 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 | - [x] 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). This is a coordinated rollback on `candidate/11.0.1xx-sr2`, where both reverted PRs landed. Their changes are not present on `net11`. 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 --> Restore the Android ScrollView behavior from before dotnet#40389 while the compatibility impact and any future opt-in/opt-out design are considered. Revert, in reverse dependency order: - dotnet#40512 (`e3c8b2ec8cb9e6e78a4ddf90aca9dda177c27aa5`): restore the previous `android-notch-36/Issue35410_Landscape.png` baseline. - dotnet#40389 (candidate commit `93995479185ce7594f4b771cc99a26745e0d23e7`): remove the unconditional `SetClipToPadding(false)` and remove the device test requiring content to draw under safe-area padding. **Behavior:** ordinary Android ScrollViews once again use Android's default padding clipping. Scrolling content no longer draws into the native safe-area/keyboard padding bands. Existing special-case behavior, including Shell flyout overrides, is unchanged. The three changed paths exactly match their versions immediately before dotnet#40389. The original issue dotnet#37306 is intentionally no longer fixed by this change. The earlier dotnet#39898 landscape/notch fix and all unrelated changes are preserved. Searches for dotnet#40389, dotnet#37306, clipping-related follow-ups, and subsequent changes to the affected paths identified dotnet#40512 as the only merged dependent follow-up. No feature flag or review-workflow changes are included. **Validation** - `git diff --cached --check` - passed. - `git diff --cached --quiet 9399547^ -- src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.Android.cs src/Controls/tests/TestCases.Android.Tests/snapshots/android-notch-36/Issue35410_Landscape.png` - passed; exact pre-change source/test/baseline restoration. - `dotnet format whitespace --folder --include src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs --verify-no-changes` - passed. - `dotnet build Microsoft.Maui.BuildTasks.slnf -c Release -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:q` - passed. - `pwsh -NoProfile -File .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform android -TestFilter 'Category=ScrollView' -Rebuild -OutputDirectory <session-artifacts>/scrollview-rollback-final -Timeout 00:10:00` - passed, **13 passed / 0 failed / 0 skipped**, Release arm64 Android API 34 emulator; verified from fresh result XML. The same full-rebuild command with the candidate's production handler temporarily restored also passed 13/13. The final source contains the rollback. Earlier incremental attempts encountered a missing-result-file error and `DoesNotLeak` GC failures (12/13); these are disclosed rather than counted as passing. Both full-rebuild comparison runs passed. The full-solution formatter could not complete with missing unrelated project references and was stopped; the targeted formatting check above passed. The default all-platform BuildTasks command failed because the installed Apple workloads support 27.2 rather than the branch's 27.0; the Android-scoped prerequisite build passed without repository configuration changes. The API 36 notch screenshot UI test was **not run locally**; its baseline is restored byte-for-byte, and CI still needs to validate that configuration. ### 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. --> Reverts dotnet#40389 and its dependent baseline update dotnet#40512. Related: dotnet#37306, dotnet#35410, dotnet#39898, dotnet#40116. <!-- 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: Copilot App <223556219+Copilot@users.noreply.github.com>
HarishwaranVijayakumar
pushed a commit
to HarishwaranVijayakumar/maui
that referenced
this pull request
Nov 24, 2026
dotnet#40541) <!-- 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! ### 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 | - [x] 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 dotnet#40389 added an unconditional `SetClipToPadding(false)` to the Android `ScrollViewHandler`. That changed rendering for every Android `ScrollView` with safe-area padding, without an opt-in, and was reverted by dotnet#40539 (analysis: dotnet#37306 (comment)). None of the existing 31 expert-reviewer dimensions flags this: #12 covers API removal and Xamarin migration, and #14 covers restore-on-clear of native defaults. This PR adds dimension **#32 Behavioral Change Disclosure `[major]`** to `maui-expert-reviewer.md`: - It flags unconditional native-default overrides in `CreatePlatformView`/`ConnectHandler`, changed default values, modified `snapshots/**` baselines, and observable event order/timing changes. - Every finding must state the before → after behavior, the triggering configuration, and the missing opt-in/opt-out. - Servicing targets need an opt-in that keeps the old behavior by default; `main` needs an opt-out plus a breaking-change note. Aligning with native behavior is not a reason to skip the opt-in. - Routing: `src/{Core,Controls,Essentials}/src/**` → #32; `src/Controls/tests/*/snapshots/**` images → #32 and Regression Prevention. - Its severity is capped at `[major]`, like #31. The trusted collector `.github/scripts/Review-Expert.ps1` is updated to match: the dimension bounds go from 31 to 32, the two routing rules are added, the `[major]` cap is enforced for #32, and the routing-section SHA256 pin is recomputed. The adapter and docs now say 32. No `.lock.yml` changes are needed. **Validation** (pwsh, loading the script's functions from its AST): - Recomputing the routing hash on `main`'s rulebook reproduces the old pin `b1cf5130…`. The new pin is `f565395e…`. - `Get-ExpertDimensionNames` → 32 names; #32 = "Behavioral Change Disclosure". - `Get-ExpertExpectedDimensions` for dotnet#40389's files → includes 32. For dotnet#40512's refreshed snapshot PNG → `5,6,16,32`. For a docs-only change → `5,6,16`, unchanged. - `Get-ExpertDimensions @(1..32)` passes; `@(33)` is rejected. - `git diff --check` is clean. ### Issues Fixed Relates to dotnet#37306 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
KarthikRajaKalaimani
pushed a commit
to KarthikRajaKalaimani/maui
that referenced
this pull request
Nov 26, 2026
dotnet#40541) <!-- 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! ### 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 | - [x] 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 dotnet#40389 added an unconditional `SetClipToPadding(false)` to the Android `ScrollViewHandler`. That changed rendering for every Android `ScrollView` with safe-area padding, without an opt-in, and was reverted by dotnet#40539 (analysis: dotnet#37306 (comment)). None of the existing 31 expert-reviewer dimensions flags this: #12 covers API removal and Xamarin migration, and #14 covers restore-on-clear of native defaults. This PR adds dimension **#32 Behavioral Change Disclosure `[major]`** to `maui-expert-reviewer.md`: - It flags unconditional native-default overrides in `CreatePlatformView`/`ConnectHandler`, changed default values, modified `snapshots/**` baselines, and observable event order/timing changes. - Every finding must state the before → after behavior, the triggering configuration, and the missing opt-in/opt-out. - Servicing targets need an opt-in that keeps the old behavior by default; `main` needs an opt-out plus a breaking-change note. Aligning with native behavior is not a reason to skip the opt-in. - Routing: `src/{Core,Controls,Essentials}/src/**` → #32; `src/Controls/tests/*/snapshots/**` images → #32 and Regression Prevention. - Its severity is capped at `[major]`, like #31. The trusted collector `.github/scripts/Review-Expert.ps1` is updated to match: the dimension bounds go from 31 to 32, the two routing rules are added, the `[major]` cap is enforced for #32, and the routing-section SHA256 pin is recomputed. The adapter and docs now say 32. No `.lock.yml` changes are needed. **Validation** (pwsh, loading the script's functions from its AST): - Recomputing the routing hash on `main`'s rulebook reproduces the old pin `b1cf5130…`. The new pin is `f565395e…`. - `Get-ExpertDimensionNames` → 32 names; #32 = "Behavioral Change Disclosure". - `Get-ExpertExpectedDimensions` for dotnet#40389's files → includes 32. For dotnet#40512's refreshed snapshot PNG → `5,6,16,32`. For a docs-only change → `5,6,16`, unchanged. - `Get-ExpertDimensions @(1..32)` passes; `@(33)` is rejected. - `git diff --check` is clean. ### Issues Fixed Relates to dotnet#37306 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
KarthikRajaKalaimani
pushed a commit
to KarthikRajaKalaimani/maui
that referenced
this pull request
Nov 26, 2026
…aseline (dotnet#40539) <!-- 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 | - [x] 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). This is a coordinated rollback on `candidate/11.0.1xx-sr2`, where both reverted PRs landed. Their changes are not present on `net11`. 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 --> Restore the Android ScrollView behavior from before dotnet#40389 while the compatibility impact and any future opt-in/opt-out design are considered. Revert, in reverse dependency order: - dotnet#40512 (`e3c8b2ec8cb9e6e78a4ddf90aca9dda177c27aa5`): restore the previous `android-notch-36/Issue35410_Landscape.png` baseline. - dotnet#40389 (candidate commit `93995479185ce7594f4b771cc99a26745e0d23e7`): remove the unconditional `SetClipToPadding(false)` and remove the device test requiring content to draw under safe-area padding. **Behavior:** ordinary Android ScrollViews once again use Android's default padding clipping. Scrolling content no longer draws into the native safe-area/keyboard padding bands. Existing special-case behavior, including Shell flyout overrides, is unchanged. The three changed paths exactly match their versions immediately before dotnet#40389. The original issue dotnet#37306 is intentionally no longer fixed by this change. The earlier dotnet#39898 landscape/notch fix and all unrelated changes are preserved. Searches for dotnet#40389, dotnet#37306, clipping-related follow-ups, and subsequent changes to the affected paths identified dotnet#40512 as the only merged dependent follow-up. No feature flag or review-workflow changes are included. **Validation** - `git diff --cached --check` - passed. - `git diff --cached --quiet 9399547^ -- src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.Android.cs src/Controls/tests/TestCases.Android.Tests/snapshots/android-notch-36/Issue35410_Landscape.png` - passed; exact pre-change source/test/baseline restoration. - `dotnet format whitespace --folder --include src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs --verify-no-changes` - passed. - `dotnet build Microsoft.Maui.BuildTasks.slnf -c Release -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:q` - passed. - `pwsh -NoProfile -File .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform android -TestFilter 'Category=ScrollView' -Rebuild -OutputDirectory <session-artifacts>/scrollview-rollback-final -Timeout 00:10:00` - passed, **13 passed / 0 failed / 0 skipped**, Release arm64 Android API 34 emulator; verified from fresh result XML. The same full-rebuild command with the candidate's production handler temporarily restored also passed 13/13. The final source contains the rollback. Earlier incremental attempts encountered a missing-result-file error and `DoesNotLeak` GC failures (12/13); these are disclosed rather than counted as passing. Both full-rebuild comparison runs passed. The full-solution formatter could not complete with missing unrelated project references and was stopped; the targeted formatting check above passed. The default all-platform BuildTasks command failed because the installed Apple workloads support 27.2 rather than the branch's 27.0; the Android-scoped prerequisite build passed without repository configuration changes. The API 36 notch screenshot UI test was **not run locally**; its baseline is restored byte-for-byte, and CI still needs to validate that configuration. ### 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. --> Reverts dotnet#40389 and its dependent baseline update dotnet#40512. Related: dotnet#37306, dotnet#35410, dotnet#39898, dotnet#40116. <!-- 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: Copilot App <223556219+Copilot@users.noreply.github.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
Target Branch
mainnet11, for reviewThis is a coordinated rollback on
candidate/11.0.1xx-sr2, where both reverted PRs landed. Their changes are not present onnet11.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
Restore the Android ScrollView behavior from before #40389 while the compatibility impact and any future opt-in/opt-out design are considered.
Revert, in reverse dependency order:
e3c8b2ec8cb9e6e78a4ddf90aca9dda177c27aa5): restore the previousandroid-notch-36/Issue35410_Landscape.pngbaseline.93995479185ce7594f4b771cc99a26745e0d23e7): remove the unconditionalSetClipToPadding(false)and remove the device test requiring content to draw under safe-area padding.Behavior: ordinary Android ScrollViews once again use Android's default padding clipping. Scrolling content no longer draws into the native safe-area/keyboard padding bands. Existing special-case behavior, including Shell flyout overrides, is unchanged.
The three changed paths exactly match their versions immediately before #40389. The original issue #37306 is intentionally no longer fixed by this change. The earlier #39898 landscape/notch fix and all unrelated changes are preserved. Searches for #40389, #37306, clipping-related follow-ups, and subsequent changes to the affected paths identified #40512 as the only merged dependent follow-up.
No feature flag or review-workflow changes are included.
Validation
git diff --cached --check- passed.git diff --cached --quiet 9399547918^ -- src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.Android.cs src/Controls/tests/TestCases.Android.Tests/snapshots/android-notch-36/Issue35410_Landscape.png- passed; exact pre-change source/test/baseline restoration.dotnet format whitespace --folder --include src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs --verify-no-changes- passed.dotnet build Microsoft.Maui.BuildTasks.slnf -c Release -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:q- passed.pwsh -NoProfile -File .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform android -TestFilter 'Category=ScrollView' -Rebuild -OutputDirectory <session-artifacts>/scrollview-rollback-final -Timeout 00:10:00- passed, 13 passed / 0 failed / 0 skipped, Release arm64 Android API 34 emulator; verified from fresh result XML. The same full-rebuild command with the candidate's production handler temporarily restored also passed 13/13. The final source contains the rollback.Earlier incremental attempts encountered a missing-result-file error and
DoesNotLeakGC failures (12/13); these are disclosed rather than counted as passing. Both full-rebuild comparison runs passed. The full-solution formatter could not complete with missing unrelated project references and was stopped; the targeted formatting check above passed. The default all-platform BuildTasks command failed because the installed Apple workloads support 27.2 rather than the branch's 27.0; the Android-scoped prerequisite build passed without repository configuration changes.The API 36 notch screenshot UI test was not run locally; its baseline is restored byte-for-byte, and CI still needs to validate that configuration.
Issues Fixed
Reverts #40389 and its dependent baseline update #40512.
Related: #37306, #35410, #39898, #40116.