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

Custom CollectionView footer disappears when adding items #8761

Closed
hannesschulze opened this issue Jul 15, 2022 · 9 comments
Closed

Custom CollectionView footer disappears when adding items #8761

hannesschulze opened this issue Jul 15, 2022 · 9 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView p/2 Work that is important, but is currently not scheduled for release platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@hannesschulze
Copy link

Description

When items are added to a collection view using a custom view as its footer, the footer sometimes disappears. When more items are added, it reappears.

I was able to reproduce this bug on Android (emulator), not on Windows. Other platforms were not tested.

Android.Emulator.-.pixel_5_-_api_31_5554.2022-07-15.15-32-49.mp4

Steps to Reproduce

  1. Clone https://github.com/hannesschulze/MauiCollectionViewFooterBug
  2. Launch the app on Android
  3. Click the "Add Item" button

Expected behavior: The footer remains visible when new items are added
Actual behavior: The footer sometimes disappears

Version with bug

6.0.408 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12

Did you find any workaround?

No response

Relevant log output

No response

@hannesschulze hannesschulze added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 15, 2022
@Eilon Eilon added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Jul 15, 2022
@rmarinho rmarinho added platform/android 🤖 p/2 Work that is important, but is currently not scheduled for release s/verified Verified / Reproducible Issue ready for Engineering Triage and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 19, 2022
@mattleibow mattleibow added this to the Backlog milestone Feb 7, 2023
@ghost
Copy link

ghost commented Feb 7, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@tranb3r
Copy link

tranb3r commented Feb 15, 2023

I'm also having this issue.
Is this going to be fixed? Any workaround?

@samhouts samhouts removed the s/verified Verified / Reproducible Issue ready for Engineering Triage label Apr 5, 2023
@Zhanglirong-Winnie Zhanglirong-Winnie added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels May 17, 2023
@Zhanglirong-Winnie
Copy link

Verified this issue with Visual Studio Enterprise 17.6.0 Preview 7.0. Repro on android platform with project.
MauiCollectionViewFooterBug-main.zip
Android

@MegaEgorik
Copy link

To fix this problem, you need to add this code after adding a new item:

(collection.Footer, collection.Footer) = (null, collection.Footer);

or

object footer = collection.Footer;
collection.Footer = null;
collection.Footer = footer;

@tranb3r
Copy link

tranb3r commented Feb 20, 2024

Is this going to be fixed?

@tranb3r
Copy link

tranb3r commented Apr 26, 2024

The workaround now seems to cause an undesired scrolling of the collectionview.

@gchapeaux
Copy link

As mentionned in #20666 , the footer only disappears when the collectionview happens to have an even number of items, I was able to reproduce it as well on Visual Studio Community 2022 - 17.9.5

@nshtinkov
Copy link

nshtinkov commented May 29, 2024

I have the same issue with MAUI 8.0.40 and VS 17.10.0. It seems that #20666 is a duplicate.

The workaround works for me, but it is quite unfortunate that almost for two years this remains not fixed.

@PureWeen
Copy link
Member

PureWeen commented Jun 6, 2024

Duplicate of #20666

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView p/2 Work that is important, but is currently not scheduled for release platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests