Skip to content

[Android][Inconsistency with web and iOS] [Invalid value for column width not defaulting to auto in Android] #3864

Description

@shbhadra

Platform

What platform is your issue or question related to? (Delete other platforms).

  • Android

Author or host

HOST

Version of SDK

1.2.6

Details

Consider the following json
{ "type":"AdaptiveCard", "version":"1.2", "$schema":"http://adaptivecards.io/schemas/adaptive-card.json", "body":[ { "type":"ColumnSet", "spacing":"none", "columns":[ { "type":"Column", "items":[ { "type":"Image", "url":"https://www.sewausa.org/resources/Sewa%20USA%20Images/DIY%20Campaigns/profile-clipart-generic-user-12.png", "horizontalAlignment":"left", "size":"small", "style":"person" } ], "horizontalAlignment":"left", "width":"automatic", "verticalContentAlignment":"center", "separator":false }, { "type":"Column", "verticalContentAlignment":"center", "items":[ { "type":"TextBlock", "text":"Some text here", "weight":"Bolder" }, { "type":"TextBlock", "text":" " } ] }, { "type":"Column", "verticalContentAlignment":"center", "items":[ { "type":"ActionSet", "actions":[ { "type":"Action.Submit", "title":"Button description", "data":{ "nwCommand":"ANYTIME_FEEDBACK_RECIPIENT_SELECTION", "wid":"2a37f8012406102d1ad61154601e02a1", "descriptor":"Logan Johnson" } } ] } ] } ] } ] }

Which defines the column width for one of the columns as "automatic". While this is not a valid value for the width parameter, the card renders fine on iOS and Web, however it doesn't render on android.

As rendered on iOS
image

As rendered on Web
image

The web visualizer shows the message - Invalid column width:automatic - defaulting to "auto"

However android doesn't render the card at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InconsistencyBugs around renderer inconsistencies across different platformsBugHigh PriorityPartner-MsftTeamsIssues related to AC integration with Microsoft Teams partnerPartner-MsftTeamsMobileBugs related specifically to Teams Mobile integration (iOS/Android)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions