Skip to content

[Android] Revert ScrollView safe-area behavior change and dependent baseline - #40539

Merged
kubaflo merged 1 commit into
candidate/11.0.1xx-sr2from
kubaflo-revert-scrollview-behavior
Nov 23, 2026
Merged

kubaflo merged 1 commit into
candidate/11.0.1xx-sr2from
kubaflo-revert-scrollview-behavior

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

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

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

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:

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

Reverts #40389 and its dependent baseline update #40512.
Related: #37306, #35410, #39898, #40116.

Revert #40512 (e3c8b2e) and #40389 (9399547) to restore pre-change clipping behavior and its screenshot baseline. Preserve unrelated fixes; defer feature flags and workflow changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 23, 2026 18:37 — with GitHub Actions Inactive
@kubaflo
kubaflo merged commit 7b4e8e5 into candidate/11.0.1xx-sr2 Nov 23, 2026
9 of 28 checks passed
@kubaflo
kubaflo deleted the kubaflo-revert-scrollview-behavior branch November 23, 2026 18:39
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 23, 2026 18:39 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 23, 2026 18:41 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 23, 2026 18:41 — with GitHub Actions Inactive
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>
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

1 inactive deployment
copilot-pat-pool — b42d9629 Deployed Nov 23, 2026 by kubaflo via conclusion #3225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant