-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Negative Padding values fail #6387
Description
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
- Unzip the project from Simple-padding.zip
- Compile and run on Android, you should see this, the expected result:

- Run on Windows and you should see this:, a blank page because no items are rendered:

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