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

CollectionView inside a Grid completely wrong measurements. #15553

Closed
Hooterr opened this issue Jun 9, 2023 · 1 comment
Closed

CollectionView inside a Grid completely wrong measurements. #15553

Hooterr opened this issue Jun 9, 2023 · 1 comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 t/bug Something isn't working

Comments

@Hooterr
Copy link

Hooterr commented Jun 9, 2023

Description

Grid is broken when a collection view is added inside.

On screenshot RowDefinitions="auto,*,auto,*"

Without CollectionView it appears to be calculating heights fine.
simulator_screenshot_960653E2-EA2F-4122-8F00-C3AC885BE58F

When you show CollectionView everything is calculated wrong.
simulator_screenshot_53F504C2-2843-43D0-A371-C3E1CF3E48CC

In same cases turning on RowSpacing would cause the collection view to grow in size by the amount of rows - 1 times the row spacing. Everything seems so unstable it's ridiculous...

Steps to Reproduce

  1. Add a CollectionView to a Grid that has at least 2 rows.
  2. CollectionView's height becomes the same as the Grid size with no respect to the RowDefinitions

Link to public reproduction project repository

https://github.com/Hooterr/MauiGridBugs

Version with bug

7.0.86

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.4

Did you find any workaround?

This is so basic it should work without any workarounds.

Relevant log output

No response

@Hooterr Hooterr added the t/bug Something isn't working label Jun 9, 2023
@hartez hartez changed the title CollectionView inside a Grid completely wrong measurments. CollectionView inside a Grid completely wrong measurements. Jun 9, 2023
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Jun 9, 2023
@jsuarezruiz jsuarezruiz added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Jun 12, 2023
@hartez
Copy link
Contributor

hartez commented Jun 13, 2023

This is fixed by #14951.

@hartez hartez closed this as completed Jun 13, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants