Skip to content

Negative Padding values fail #6387

@david-maw

Description

@david-maw

Description

I was using a label as part of a DataTemplate for a CollectionView and the label happened to have a padding with a negative value. That CollectionView showed nothing in Windows but worked as expected in Android.

Note - this is a resubmission of issue #6182 which was closed as a duplicate of issue #5621. The symptom does not look similar to me #5621 seems to be about applying margins to CollectionView items and results in incorrect margins, but this one is about padding and results in the item not being shown at all. I'm certainly willing to believe the underlying cause is the same but the symptoms seem quite different.

Steps to Reproduce

  1. Unzip the project from Simple-padding.zip
  2. Compile and run on Android, you should see this, the expected result:
    simple-padding-android
  3. Run on Windows and you should see this:, a blank page because no items are rendered:
    simple-padding-windows

Version with bug

Release Candidate 1 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows 10

Did you find any workaround?

No, just don't use negative padding values.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewarea-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions