Skip to content
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

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

Closed
adamhewitt627 opened this issue May 19, 2020 · 7 comments
Closed

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

adamhewitt627 opened this issue May 19, 2020 · 7 comments
Labels
Bug Platform-XAML Bugs or features related to Xaml Renderer

Comments

@adamhewitt627
Copy link

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

@ghost ghost added the Triage-Needed label May 19, 2020
@shalinijoshi19
Copy link
Member

Hmm @paulcam206 quick stab here? I ensured it does not repro on the JS renderer so indeed looks like spacing isnt being honored on the UWP stack (both Image and ImageSet do inherit the Spacing property per the schema)

@paulcam206
Copy link
Member

sure, I'll take a look :)

@paulcam206 paulcam206 added the Platform-XAML Bugs or features related to Xaml Renderer label Jun 3, 2020
@paulcam206
Copy link
Member

for what it's worth, this doesn't repro on master, still digging :)

@paulcam206
Copy link
Member

has to do with SetSeparatorVisibility

@shalinijoshi19
Copy link
Member

Thanks @paulcam206! If it doesn't repro on master, should we just wait until our July 2.0 release then for this to be addressed vs porting over as a 1.2 patch?

@ghost ghost removed the Triage-Needed label Jun 4, 2020
@ghost
Copy link

ghost commented Jun 4, 2020

Hi @adamhewitt627. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions. @matthidinger / @dclaux / @RebeccaAnne / @paulcam206 / @jwoo-msft / @almedina-ms FYI.

@ghost
Copy link

ghost commented Jul 8, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Platform-XAML Bugs or features related to Xaml Renderer
Projects
None yet
Development

No branches or pull requests

3 participants