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

Fixed #4739 #4107 #5320

Merged
merged 5 commits into from
Jan 27, 2021
Merged

Fixed #4739 #4107 #5320

merged 5 commits into from
Jan 27, 2021

Conversation

jwoo-msft
Copy link
Member

@jwoo-msft jwoo-msft commented Jan 23, 2021

Related Issue

Fixed #4739, Fixed #4107

Description

iOS action renderer put horizontal scroll by default as shown in the image.
image
This behavior is changed to wrap the label when buttons are in vertical orientation via HostConfig.
image
For horizontal orientation, the renderer will set the width and height of the title label of the button plus the edge insets to be the same as its super view.

Sample Card

TBA.

How Verified

How you verified the fix, including one or all of the following:

  1. New unit tests / N/A, pure UI updates
  2. Ran all unit tests.
  3. Ran all relevant sample cards.
Microsoft Reviewers: Open in CodeFlow

@@ -11,7 +11,7 @@
"actions": [
{
"type": "Action.OpenUrl",
"title": "Action.OpenUrl",
"title": "long text test, long text test, long text test, long text test, long text test, long text test,long text test",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will create a new sample card if we want to have one, otherwise, I will revert this change once the review is over.

Copy link
Member

@paulcam206 paulcam206 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jwoo-msft jwoo-msft merged commit 66bee1e into main Jan 27, 2021
@jwoo-msft jwoo-msft deleted the jwoo/ios-button-update branch January 27, 2021 11:12
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* Fixed microsoft#4739 microsoft#4107

* complete

Co-authored-by: RebeccaAnne <rebecch@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants