dotnet / dotnet/maui

I2 - Entering the vertical and horizontal lists again, Monkeys still retain the spacing value changed last time

Open
#28,023 2 comments 0 reactions 0 assignees View on GitHub
area-controls-collectionview csi-new partner/syncfusion platform/android platform/ios platform/macos platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

I2 - Entering the vertical and horizontal lists again, Monkeys still retain the spacing value changed last time
**Affected case:**
I2 - Vertical list for ItemSpacing
I2 - Horizontal list for ItemSpacing

### Steps to Reproduce

1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to iOS/MacCatalyst/Windows/Android platforms.
2. Click I2 -> Vertical list for ItemSpacing / Horizontal list for ItemSpacing
3. Change the Spacing value for example: 90 -> Click "Update"
4. The spacing between the Monkeys changes according to the set value.
5. Return to the previous page -> Re-enter
6. Observe the page display

**Actual Behavior:**
The page spacing value is: 0, but the monkey spacing still keeps the last changed value.
![Image](https://github.com/user-attachments/assets/923cb875-a92b-41cf-a8e9-ff6b0b2b15f8)

**Expected Behavior:**
The page spacing value is 0, and the monkey spacing value is also 0
![Image](https://github.com/user-attachments/assets/3d134fe4-cd1d-4c3b-a752-c994bfb1f0d9)

### Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

### Version with bug

Microsoft.Maui.Controls 9.0.50-ci.main.25124.1

### Is this a regression from previous behavior?

Not a regression, The issue also repro on 9.0.40 & 9.0.0 & 8.0.100 & 8.0.3

### Affected platforms

iOS, Android, Windows, macOS

Contributor guide

Open the contributing guide

Research direction

Start with the ManualMauiTests reproduction project and the I2 vertical and horizontal ItemSpacing pages described in the issue. Reproduce the navigation sequence on an affected platform, then trace how the spacing value is restored after returning to the page; done means the displayed value and monkey spacing both reset to 0 on re-entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.