maui: CollectionView does not shrink correctly on Windows

Description

As seen in the video below, if I expand the CollectionView and then shrink it back, elements that should appear at the edge of the screen are now off the screen (where they were when the window was stretched).

https://github.com/dotnet/maui/assets/338984/bc461cf9-c22f-486d-8d2c-114266f03724

I’m not sure how to test this type of scenario on the mobile platforms, so I’m not sure if this issue exists on those or not.

Steps to Reproduce

  1. git clone git@github.com:jstedfast/Stocks
  2. cd Stocks
  3. git checkout -b collection-view-wobble origin/collection-view-wobble
  4. git reset --hard 546edf8b84b0636e02ab6478fabbce139eb84e1b
  5. Open the Stocks.sln in Visual Studio
  6. Select “Windows machine” as the device
  7. Build & Run
  8. Stretch the window horizontally and then shrink it back to the size it started out and watch how elements that should be on the right-side edge of the screen are now out of view.

Link to public reproduction project repository

https://github.com/jstedfast/Stocks

Version with bug

8.0.0-preview.6.8686

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11 Enterprise 22H2

Did you find any workaround?

I have not.

Relevant log output

No relevant logs as far as I can tell.

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 4
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Wanted to give a bump on this one and see if it’s going to make it to GA