-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
On iOS, CollectionView Header size changed causes overlap #20538
Comments
I have the exact same issue with a ListView. I can also confirm 8.0.3 has this bug. I've updated my workloads but the issue persists. Unfortunately, I have no workaround (yet) |
As a potential workaround for now, try a Grid instead of VerticalStackLayout: <CollectionView.Header>
<Grid x:Name="headerStack"
RowDefinitions="Auto,Auto,Auto"
Padding="10,0"
RowSpacing="15"
BackgroundColor="Pink">
<Image
Source="dotnet_bot.png"
Grid.Row="1"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" />
<Label x:Name="headLine"
Text="--"
Grid.Row="2"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
<Label x:Name="subHeadLine"
Text="--"
Grid.Row="3"
Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
</Grid>
</CollectionView.Header> |
Also experiencing the same issue in a project I'm converting from XF to MAUI. I have Entry and Label bindings in the CollectionView header and the Header overlaps with GroupHeader and Items. Works correctly on Android but not on iOS. Have tried various workarounds, for example:
Frustrating.... |
Found a workaround which seems to work for me when using 8.0.20-nightly.10316, see: #12429 (comment) For each Entry or Label element with a binding in the CollectionView header that will potentially change the size of the element, I've added a
|
Duplicate of #12429 |
Description
If I initialize a CollectionView Header, and then it gets bigger, the header content overlaps the CollectionView items on iOS. Works fine on Android.
On iOS, in the CollectionView Header, if I have Label(s) and their default text fits on a single line, but then I populate these Labels with text that takes up two or more lines and the text needs to wrap, the header does not resize and the header overlaps the items.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/billreiss/CollectionViewOverlappingIssue
Version with bug
8.0.6
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17.2
Did you find any workaround?
No I have tried several things, I haven't found anything that works.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: