Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView HorizontalItemSpacing unexpected layout #12688

Open
VladislavAntonyuk opened this issue Oct 30, 2020 · 6 comments
Open

[Bug] CollectionView HorizontalItemSpacing unexpected layout #12688

VladislavAntonyuk opened this issue Oct 30, 2020 · 6 comments

Comments

@VladislavAntonyuk
Copy link
Contributor

Description

Steps to Reproduce

  1. Create collection view
  2. Add ItemLayout
			<CollectionView.ItemsLayout>
				<GridItemsLayout Orientation="Vertical"
				                 HorizontalItemSpacing="50"
                                                 VerticalItemSpacing="10">
					<GridItemsLayout.Span>
						<OnIdiom
							x:TypeArguments="x:Int32"
							Default="2"
							Tablet="4"
							Desktop="6"/>
					</GridItemsLayout.Span>
				</GridItemsLayout>
			</CollectionView.ItemsLayout>

Expected Behavior

all columns have the same width

Actual Behavior

The first column and the second column has different width

Basic Information

  • Version with issue: 5.0.1-nightly
  • Platform Target Frameworks:
    • Android: Android SDK 30

Screenshots

image

Reproduction Link

Workaround

@VladislavAntonyuk VladislavAntonyuk added s/unverified New report that has yet to be verified t/bug 🐛 labels Oct 30, 2020
@samhouts samhouts added this to New in Triage Oct 30, 2020
@rmarinho rmarinho added p/Android a/collectionview and removed s/unverified New report that has yet to be verified labels Nov 2, 2020
@rmarinho rmarinho moved this from New to Ready For Work in Triage Nov 2, 2020
@rmarinho
Copy link
Member

rmarinho commented Nov 2, 2020

Seems to work fine on iOS ,but we see the issue on Android.

image

@VladislavAntonyuk
Copy link
Contributor Author

I am not sure if it is related on not, but I also see on Android, the last item has invalid height:
image

@Redth Redth moved this from Ready For Work to Needs Estimate in Triage Nov 6, 2020
@Zure1
Copy link

Zure1 commented Feb 2, 2021

@VladislavAntonyuk This is not related and has been fixed for Xamarin.Forms 5.0: #10624

@ThanhNg
Copy link

ThanhNg commented Aug 6, 2021

Sorry but any updates or work-around for this?

@chaoyebugao
Copy link

Same problem....

@kiaser
Copy link

kiaser commented Feb 28, 2022

same problem

@hartez hartez removed their assignment Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Needs Estimate
Development

No branches or pull requests

7 participants