-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] CollectionView includes additional space at the bottom #6497
Comments
@MeikandaNayanar I think this is expected behaviour because there is not enough elements to fit your device's screen. You are using scroll view with a grid which in turn has the second and more rows set as Later on the rows are set as |
Hi @DPY81 Introduction to my expectation:
Documentation I have referred. The issue I am facing here: I am expecting the layout to fit any mobile screen without any additional spaces since I have used only one grid with '*' and 'Auto' for its height. I am using the below value to make my image in the desired size (almost square) .
You can also see, I have added another label with that image (having height of 150). Both were in a stack layout which resides in a DataTemplate of CollectionView . This CollectionView is fit inside the first row of a Grid with height specified as 'Auto'. So I am expecting the collection view to exactly fit the size of the Grid's first row. But here there is additional space. Why? If you say this is the behavior then can you (or anyone) suggest me a way to achieve this? |
This is the same as #5942? |
Duplicate of #5942 |
@samhouts You closed this one referencing a duplicate, and then closed the duplicated referencing this as the duplicate. Apparently the default behavior of collectionview and listview is to take up all the space. There appears no way to disable this. Even on latest preview. |
Or at least give us an option to shrink the collectionview if the default is to take up all the space. If you put collectionview in a scrollview, its will then require scrolling to see anything below the collectionview, even if it would normally fit on a single "page". This prevents me from having a dynamic page that can expand as needed without confusing the user. |
This is not resolved |
Any update about this bug? |
Any update about this bug? ~2021 |
Hi , I just fix this bug by simple code ...
|
Description
CollectionView includes additional space at the bottom
Steps to Reproduce
Expected Behavior
The CollectionView height should end when its child items height ends.
Actual Behavior
The CollectionView vertically expands unnecessary even after its child elements which are populated in its ItemTemplate was ended.
Basic Information
Screenshots
https://us.v-cdn.net/5019960/uploads/editor/nq/j2wvmwhpkpa4.png
Reproduction Link
CollectionView.zip
The text was updated successfully, but these errors were encountered: