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

[BUG] Items inside the CollectionView that inside the Expander don't stretch on Android #1656

Open
2 tasks done
Nevmen opened this issue Jan 24, 2024 · 2 comments
Open
2 tasks done
Labels
area/views Issue/Discussion/PR that has to do with Views bug Something isn't working

Comments

@Nevmen
Copy link

Nevmen commented Jan 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Items inside the CollectionView that inside the Expander don't stretch on Android
2024-01-24 113250

Expected Behavior

Items stretch to full width of the Expander.
image

Steps To Reproduce

  1. Open and run solution from repository

Link to public reproduction project repository

https://github.com/Nevmen/ExpanderWithCollectionView

Environment

- .NET MAUI CommunityToolkit: 7.0.1
- OS: Android
- .NET MAUI: 8.0.3

Anything else?

After moving or resizing emulator window items stretch as expected.

@Nevmen Nevmen added bug Something isn't working unverified labels Jan 24, 2024
@Nevmen Nevmen changed the title [BUG] [BUG] Items inside the CollectionView that inside the Expander don't stretch on Android Jan 24, 2024
@vhugogarcia vhugogarcia added the area/views Issue/Discussion/PR that has to do with Views label Jan 31, 2024
@KarlSearl
Copy link

Same issue- any support with this?

@vhugogarcia
Copy link
Contributor

@KarlSearl The only workaround for this issue is to set a fixed width on the element inside the carousel view. Depends on your needs, but you can obtain the width size of the screen and set it to each row of the collection view, please take a look at the blog post I created to obtain the screen sizes, and how I use it to set a fixed width or size of elements on the UI, you can either use it on a ViewModel and then binding it, so you can render it on the CollectionView row.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/views Issue/Discussion/PR that has to do with Views bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants