Skip to content

EmptyViewTemplate Does Not Apply HeightRequest and WidthRequest, Causing Header and Footer to Be Invisible in CV2 #28605

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

Closed
NafeelaNazhir opened this issue Mar 25, 2025 · 2 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView collectionview-cv2 i/regression This issue described a confirmed regression on a currently supported version partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios platform/macos macOS / Mac Catalyst regressed-in-9.0.0 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@NafeelaNazhir
Copy link
Contributor

Description

When the EmptyViewTemplate is active in the CollectionView, the Header and Footer are not visible. Initially, this issue appeared when setting HeightRequest and WidthRequest in the EmptyViewTemplate, as the values were not applied, preventing proper resizing. Additionally, even without setting HeightRequest and WidthRequest, the Header and Footer remain invisible.

However, the EmptyView itself respects these properties and resizes correctly. When HeightRequest and WidthRequest are explicitly set in the EmptyView, the Header and Footer become visible. But without explicitly setting these values, the Header and Footer do not appear.

Screen.Recording.2025-03-25.at.5.38.34.PM.mov

Steps to Reproduce

  1. Launch the Application EmptyViewSample.zip
  2. Select EmptyViewTemplate(View with size), Header/header template and Footer/Footer template.
  3. Observe that header and footer is not visible.
  4. Select EmptyViewTemplate (View) , Header/header template and Footer/Footer template. Observe that header and footer is not visible.
  5. Select EmptyView(view) , Header/header template and Footer/Footer template. Observe that header and footer is not visible.

Expected Behavior:

  • The Header and Footer should always be visible, regardless of whether HeightRequest and WidthRequest are explicitly set for the EmptyView and EmptyViewTemplate.
  • The EmptyViewTemplate should adjust its size based height and width values.

Actual Behavior:

  • When EmptyViewTemplate with and without explicitly setting HeightRequest and WidthRequest, the Header and Footer are not visible.
  • The EmptyViewTemplate should not adjust its size based on HeightRequest and WidthRequest values.
  • When EmptyView without explicitly setting HeightRequest and WidthRequest, the Header and Footer are not visible.

Link to public reproduction project repository

No response

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@NafeelaNazhir NafeelaNazhir added the t/bug Something isn't working label Mar 25, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Mar 25, 2025
@SuthiYuvaraj SuthiYuvaraj added platform/macos macOS / Mac Catalyst platform/ios s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 25, 2025
@SuthiYuvaraj
Copy link
Contributor

This issue has been verified in VS code (1.98.2) (versions 9.0.50, 9.0.0). It can be reproduced on the iOS and MacCatalyst platform.

Note: The issue reproduces on CV2 but does not reproduce on the Android and Windows platforms.

@jfversluis jfversluis added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Mar 25, 2025
@rmarinho rmarinho added this to the Backlog milestone Apr 11, 2025
@sheiksyedm sheiksyedm added the i/regression This issue described a confirmed regression on a currently supported version label Apr 15, 2025
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 collectionview-cv2 i/regression This issue described a confirmed regression on a currently supported version partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios platform/macos macOS / Mac Catalyst regressed-in-9.0.0 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

8 participants