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

CollectionView pushes content below it off the screen on macOS and iOS #15809

Open
KeithBoynton opened this issue Jun 23, 2023 · 4 comments
Open
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@KeithBoynton
Copy link

Description

If you add a CollectionView to a page regardless of the number of items in it's collection it will push any controls rendered below it off the screen on macOS and iOS.

It works as expected on Windows and Android. On iOS to be precise it actually pushes the content into the non safe area but the controls under the collection view still behave differently when it's present so I would argue the bug is present on iOS too.

Steps to Reproduce

  1. Download the attached example solution.
  2. Run the solution on Mac and observe the label with the text "below" is NOT visible.
  3. Comment out the CollectionView on the MainPage and observe the label appear.
  4. Perform the same on iOS.

Link to public reproduction project repository

https://github.com/KeithBoynton/CollectionView2

Version with bug

7.0.49

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS and mac 16.1

Did you find any workaround?

No

Relevant log output

No response

@KeithBoynton KeithBoynton added the t/bug Something isn't working label Jun 23, 2023
@drasticactions
Copy link
Contributor

drasticactions commented Jun 23, 2023

This should be fixed with #14951, with a backport to net7.0 (#15652) coming.

Could you try this in net8.0 to see if it works correctly?

@PureWeen PureWeen added area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Jun 23, 2023
@ghost
Copy link

ghost commented Jun 23, 2023

Hi @KeithBoynton. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@KeithBoynton
Copy link
Author

While it does look like it's resolved this issue, it seems to have introduced a new problem in that it's no longer resolving the binding context of the individual items in the source list. Is this a known problem?

@ghost ghost removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jun 26, 2023
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jan 26, 2024
@Zhanglirong-Winnie
Copy link

Verified this issue with Visual Studio for mac 17.6.8 (build 400). Can repro on iOS and macOS platforms with sample project.
https://github.com/KeithBoynton/CollectionView2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 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

5 participants