Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[TS] Column width no longer accepts decimals as valid values #3580

Description

@susanshen96

Platform

  • Typescript

Version of SDK

1.2.3

Details

On Teams, we've discovered that an app that has been using adaptive cards has been setting the width of a column to 2.6, and the card now rendering differently than what it used to. It seems that the SDK renderer no longer accepts decimal values as valid values for column widths, and is treating it as invalid and setting it to the default width, which is now "stretch". Screenshots of how the card used to look like vs. now are included, along with the JSON payload used to generate this card.

1.0:
image

1.2:
image

JSON payload:
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "items": [ { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png", "altText": "Creative", "horizontalAlignment": "Center" } ], "width": 2.6 }, { "type": "Column", "items": [ { "type": "TextBlock", "text": "Susan Shen sent praise to", "spacing": "None", "wrap": true, "isSubtle": true }, { "type": "TextBlock", "text": "New TextBlock" }, { "type": "TextBlock", "text": "New TextBlock" } ], "width": 6, "spacing": "Medium" } ] } ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPartner-MsftTeamsIssues related to AC integration with Microsoft Teams partnerPlatform-JavaScriptBugs or features related to the JavaScript renderer

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions