Skip to content

[UWP][Image] [Image doesn't include spacing] #4035

@adamhewitt627

Description

@adamhewitt627

Platform

  • UWP

Version of SDK

<PackageReference Include="AdaptiveCards" Version="1.2.4" />
<PackageReference Include="AdaptiveCards.Rendering.Uwp" Version="1.2.8" />

Details

The "Image" element doesn't include any spacing set on it, but you will see spacing on a parent ColumnSet.

Reproduction

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
        {
            "text": "Here's a heading",
            "type": "TextBlock",
            "weight": "Bolder"
        },
        {
            "type": "ColumnSet",
            "spacing": "ExtraLarge",
            "columns": [
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "Image",
                            "url": "https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE1Mu3b?ver=5c31"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Image",
            "url": "https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE1Mu3b?ver=5c31",
            "spacing": "ExtraLarge"
        },
        {
            "text": "And some text below",
            "type": "TextBlock",
            "wrap": true
        }
    ]
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPlatform-XAMLBugs or features related to Xaml Renderer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions