Skip to content

[Rendering] ActionSet type button going off screen #6365

Description

@janusbal

Target Platforms

iOS

SDK Version

1.2.0

Application Name

Microsoft Teams

Problem Description

Button with type ActionSet next to an element of type RichText type is going off the screen.

Screenshots

Simulator Screen Shot - iPhone 12 Pro - 2021-09-16 at 14 35 11

Card JSON

{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"separator": false,
"style": "emphasis",
"items": [
{
"separator": false,
"inlines": [
{
"size": "large",
"weight": "bolder",
"type": "TextRun",
"text": "Lorem Ipsum"
}
],
"type": "RichTextBlock",
"spacing": "none"
}
],
"type": "Container",
"bleed": true
},
{
"items": [
{
"columns": [
{
"separator": false,
"items": [
{
"weight": "bolder",
"isSubtle": false,
"separator": false,
"size": "medium",
"text": "Lorem Ipsum Lorem Ipsum ",
"wrap": true,
"spacing": "none",
"type": "TextBlock",
"maxLines": 0
},
{
"isSubtle": false,
"separator": false,
"text": "Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum",
"wrap": true,
"spacing": "none",
"type": "TextBlock",
"maxLines": 0
}
],
"width": "stretch",
"type": "Column"
},
{
"separator": false,
"items": [
{
"separator": false,
"actions": [
{
"title": "Configure",
"data": {
"nwCommand": "TEST_TEST_TEST_TEST",
"msteams": {
"type": "task/fetch"
},
"messageGUID": "122222222222-22-2-2-2"
},
"type": "Action.Submit"
}
],
"type": "ActionSet",
"spacing": "small"
}
],
"width": "auto",
"type": "Column"
}
],
"separator": false,
"type": "ColumnSet"
}
],
"separator": false,
"type": "Container"
},
{
"isSubtle": false,
"separator": true,
"text": " ",
"wrap": false,
"spacing": "padding",
"type": "TextBlock",
"maxLines": 0
},
{
"items": [
{
"columns": [
{
"separator": false,
"items": [
{
"weight": "bolder",
"isSubtle": false,
"separator": false,
"size": "medium",
"text": "Test Button Name",
"wrap": true,
"spacing": "none",
"type": "TextBlock",
"maxLines": 0
},
{
"isSubtle": false,
"separator": false,
"text": "Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum",
"wrap": true,
"spacing": "none",
"type": "TextBlock",
"maxLines": 0
}
],
"width": "stretch",
"type": "Column"
},
{
"separator": false,
"items": [
{
"separator": false,
"actions": [
{
"title": "View diagnostics",
"data": {
"nwCommand": "TEST_TEST_TEST_TEST",
"msteams": {
"type": "task/fetch"
}
},
"type": "Action.Submit"
}
],
"type": "ActionSet",
"spacing": "small"
}
],
"width": "auto",
"type": "Column"
}
],
"separator": false,
"type": "ColumnSet"
}
],
"separator": false,
"type": "Container"
},
{
"isSubtle": false,
"separator": true,
"text": " ",
"wrap": false,
"spacing": "padding",
"type": "TextBlock",
"maxLines": 0
},
{
"items": [
{
"columns": [
{
"separator": false,
"items": [
{
"weight": "bolder",
"isSubtle": false,
"separator": false,
"size": "medium",
"text": "Lorem ipsum Lorem ipsum",
"wrap": true,
"spacing": "none",
"type": "TextBlock",
"maxLines": 0
},
{
"isSubtle": false,
"separator": false,
"text": "⚠️ Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum.",
"wrap": true,
"spacing": "none",
"type": "TextBlock",
"maxLines": 0
}
],
"width": "stretch",
"type": "Column"
},
{
"separator": false,
"items": [
{
"separator": false,
"actions": [
{
"title": "Disconnect",
"data": {
"nwCommand": "TEST_TEST_TEST_TEST",
"msteams": {
"type": "task/fetch"
}
},
"type": "Action.Submit"
}
],
"type": "ActionSet",
"spacing": "small"
}
],
"width": "auto",
"type": "Column"
}
],
"separator": false,
"type": "ColumnSet"
}
],
"separator": false,
"type": "Container"
},
{
"isSubtle": false,
"separator": true,
"text": " ",
"wrap": false,
"spacing": "padding",
"type": "TextBlock",
"maxLines": 0
},
{
"items": [
{
"columns": [
{
"separator": false,
"items": [
{
"separator": false,
"inlines": [
{
"size": "medium",
"weight": "bolder",
"type": "TextRun",
"text": "Lorem ipsum Lorem ipsum Lorem ipsum"
}
],
"type": "RichTextBlock",
"spacing": "padding"
},
{
"separator": false,
"inlines": [
{
"type": "TextRun",
"text": "Status: "
},
{
"color": "good",
"fontType": "monospace",
"type": "TextRun",
"text": "ENABLED"
}
],
"type": "RichTextBlock",
"spacing": "none"
},
{
"separator": false,
"inlines": [
{
"type": "TextRun",
"text": "Credentials: "
},
{
"type": "TextRun",
"text": "name Name",
"fontType": "monospace"
}
],
"type": "RichTextBlock",
"spacing": "none"
}
],
"width": "stretch",
"type": "Column"
},
{
"separator": false,
"items": [
{
"separator": false,
"actions": [
{
"title": "Test button",
"data": {
"nwCommand": "TEST_TEST_TEST_TEST",
"isTab": true,
"nextDashboard": "Lorem_ipsum"
},
"type": "Action.Submit"
}
],
"type": "ActionSet",
"spacing": "small"
}
],
"width": "auto",
"type": "Column"
}
],
"separator": false,
"type": "ColumnSet"
}
],
"separator": false,
"type": "Container"
}
],
"msTeams": {
"width": "full"
}
}

Sample Code Language

objective-c

Sample Code

See payload

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions