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

[macOS] CollectionView.Header with a Grid - incorrect fixed width - does not resize #22354

Open
AlexVDV116 opened this issue May 12, 2024 · 2 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@AlexVDV116
Copy link

Description

The Header of a CollectionView does not size appropriately according to the Grid.Columndefinitions.

Tested same code on Windows where it does work like expected.

Steps to Reproduce

  1. Clone the repro repository.
  2. Launch the app on macOS.
  3. Resize the window.
  4. The elements in the CollectionView will resize, the header will stay a fixed width.

image

Using CollectionView.HeaderTemplate together with a DateTemplate does not seem to matter.
Running the same code on Windows gives the desired effect where the Headers resize appropriately with the collums.

Link to public reproduction project repository

https://github.com/AlexVDV116/CollectionViewHeaders

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

macOS Sonoma 14.4.1

Did you find any workaround?

Extracting the GRID out of the CollectionView.Header and placing it above the CollectionView using a VerticalStackLayout, or using a ListView and its headers do provide me the desired effect. However this does not make use of the CollectionView Headers.

Relevant log output

No response

@AlexVDV116 AlexVDV116 added the t/bug Something isn't working label May 12, 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.

@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 13, 2024
@ninachen03
Copy link
Collaborator

Verified this issue with Visual Studio 17.6.12(build410) (8.0.21 & 8.0.6). Can repro it.
image

@jsuarezruiz jsuarezruiz added platform/macOS 🍏 macOS / Mac Catalyst area-controls-collectionview CollectionView, CarouselView, IndicatorView labels May 13, 2024
@jsuarezruiz jsuarezruiz added this to the Backlog milestone May 20, 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/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants