Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect item displayed when window scale and layout value is greater than 100 #23233

Open
gauravK996 opened this issue Jun 25, 2024 · 5 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed t/bug Something isn't working
Milestone

Comments

@gauravK996
Copy link

Description

When the window scale and layout value exceeds 100%, the wrong item is displayed in the CollectionView.

Steps to Reproduce

Steps to Reproduce:

  1. Set the window scale and layout value to greater than 100%.
  2. Observe the items displayed in the CollectionView.

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

<CollectionView
      BackgroundColor="White"
      ItemSizingStrategy="MeasureAllItems"
      ItemsSource="{Binding Photos}"
      VerticalScrollBarVisibility="Always">
      <CollectionView.ItemsLayout>
          <GridItemsLayout
              HorizontalItemSpacing="4"
              Orientation="Vertical"
              Span="3"
              VerticalItemSpacing="4" />
      </CollectionView.ItemsLayout>
  
      
  </CollectionView>
@gauravK996 gauravK996 added the t/bug Something isn't working label Jun 25, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@kubaflo kubaflo added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Jun 25, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Jun 27, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

This issue has been verified using Visual Studio 17.11.0 Preview 2.1 (8.0.40 & 8.0.60). Can't be reproduced on windows platform. When I set the ratio to greater than 100%, the CollectionView still displays normally.

@gauravK996
Copy link
Author

This issue has been verified using Visual Studio 17.11.0 Preview 2.1 (8.0.40 & 8.0.60). Can't be reproduced on windows platform. When I set the ratio to greater than 100%, the CollectionView still displays normally.

Could you please provide the code snippet you're working with?

@dotnet-policy-service dotnet-policy-service bot removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jun 27, 2024
@gauravK996
Copy link
Author

gauravK996 commented Jun 27, 2024

Sample - https://github.com/gauravK996/Sample/blob/main/CollectionViewDemos.zip

image
=> Click on vertical grid

image
span set to 3 but it shows only 2 item in a row

image

maximizing or changing window size also flickers item numbers in a rows.

MAUI Version - 8.0.61 SR6.1 (Last version that worked well - 8.0.7)

image

My recommended settings for size 100%, but you can try with different sizes.

@gauravK996
Copy link
Author

gauravK996 commented Jun 27, 2024

<//dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM<//dpiAware>
<//dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor<//dpiAwareness>

Removing this dpi settings from platforms=>windows=> app.manifest will temporarily fix this problem.

@PureWeen PureWeen added this to the Backlog milestone Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/windows 🪟 s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants