dotnet / dotnet/maui

I2_Spacing - Changing the spacing value to a higher number causes the scrolling performance to be slower.

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

Description

### Description

If you change the spacing value to a higher number, the scrolling performance of the list would be slower.

Affected case:
I2 - Vertical list (Item Spacing)
I2 - Horizontal list (Item Spacing)
I2 - Vertical grid (Horizontal Item Spacing and Vertical Item Spacing)
I2 - Horizontal grid (Horizontal Item Spacing and Vertical Item Spacing)

### Steps to Reproduce

1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests on Android platform (debug or release mode).
2. Click I2 -> Vertical list (Spacing) or any page where you can change the spacing value.
3. Change the spacing value to a higher number (ex. 100), observe that the scrolling performance is slower than when you set it to 0 or a lower number.

Actual Behavior:
Change in the spacing value causes slower scrolling performance.

![Image](https://github.com/user-attachments/assets/84c70a24-d009-47cc-bf71-ab5dbedfec3c)

Expected Behavior:
Change in the spacing value would not cause any changes in the scrolling performance.

![Image](https://github.com/user-attachments/assets/77c5fa5e-ab33-4d52-98c1-1bb1abac8a4a)

### Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=%2FAssets%2FProjects%2FManualMauiTests

### Version with bug

9.0.60-ci.main.25165.2

### Is this a regression from previous behavior?

Not a regression, the issue also reproduces on 9.0.50 & 9.0.40 & 9.0.0 & 8.0.100.

### Affected platforms

Android

Contributor guide

Open the contributing guide

Research direction

Start by deploying the linked VS.TestAssets.Xaml ManualMauiTests project on Android and reproduce the I2 vertical and horizontal list/grid cases with spacing 0 and 100. Compare scrolling performance across the affected cases; done means changing spacing no longer causes slower scrolling, with the relevant behavior covered by a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.