microsoft / microsoft/AdaptiveCards
[UWP] Multiline Input.Text elements should stretch when height is set to stretch
Open
Nobody has claimed this yet.
Feature
Task
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
UWP spin off of #4097
Platform
- UWP
Details
For multiline Input.Text elements with the height set to stretch, the control should stretch to take up the available space. Sample card below:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Custom JSON Design Input",
"horizontalAlignment": "Center"
},
{
"type": "TextBlock",
"text": "In addition to showing your our pre-built samples, I can submit your custom design for you. This helps to see how it will render or to see what type of payload your app will need to process if a user hits an Action.Submit button.",
"wrap": true
},
{
"type": "TextBlock",
"text": "One way to get design JSON to paste here is to use the \"Copy Card JSON\" button from the [Buttons and Cards Designer](https://developer.webex.com/buttons-and-cards-designer) "
},
{
"type": "Container",
"items": [
{
"type": "Input.Text",
"placeholder": "Paste card JSON here",
"id": "cardJson",
"isMultiline": true,
"height": "stretch",
"maxLength": 8000
}
],
"minHeight": "266px"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Display My Card",
"data": {
"cardType": "customJsonInput",
"nextAction": "submitJson"
}
},
{
"type": "Action.Submit",
"title": "Go Back To The Built In Samples",
"data": {
"cardType": "customJsonInput",
"nextAction": "samplePicker"
}
}
]
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reproducing the supplied Adaptive Card on the UWP renderer and trace multiline Input.Text layout when height is set to stretch; done means the control fills the available container space without regressing other input layouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100