Skip to content

Negative Padding values fail on Windows work on Android #6182

@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.

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

Android 11

Did you find any workaround?

Only avoiding negative values

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions