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

Jwoo/ios column #4918

Merged
merged 3 commits into from
Oct 21, 2020
Merged

Jwoo/ios column #4918

merged 3 commits into from
Oct 21, 2020

Conversation

jwoo-msft
Copy link
Member

@jwoo-msft jwoo-msft commented Oct 13, 2020

Related Issue

reference #4504
fixed #4832

Description

Updated Image to change its CRHP (compression resistance hugging priority) according to the column width value. For example, when the image has an explicitly pixel width and dimension, CRHP will be set to the maximum value. However, this behavior is not what we want when a column width value is set to stretch. For more information on column width, please check with Alberto's design discussion on 10/7. When a column is stretch, we want image to be stretchable and at the same time compressible. This change allows images to have less than NSLayoutPrioirtyRequired in such cases.

How Verified

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

  1. Cards with problems were tested and verified
    Before [iOS-UWP][ColumnSet Parity Issue] [Parity issue between iOS and desktop for image width in columnSet] #4504
    Simulator Screen Shot - iPhone 8 - 2020-09-30 at 14 10 05
    After
    Simulator Screen Shot - iPhone 8 - 2020-10-13 at 14 34 50

Fixed result for #4832
Simulator Screen Shot - iPhone 8 - 2020-10-13 at 14 30 43

  1. To check for regression, all existing cards except 1.3 element cards were run and verified.
Microsoft Reviewers: Open in CodeFlow

@ghost ghost added the no-recent-activity label Oct 19, 2020
@ghost
Copy link

ghost commented Oct 19, 2020

Hi @jwoo-msft. This non-spec pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along.

Copy link
Contributor

@RebeccaAnne RebeccaAnne left a comment

Choose a reason for hiding this comment

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

:shipit:

@ghost ghost removed the no-recent-activity label Oct 21, 2020
@ghost
Copy link

ghost commented Oct 21, 2020

Hi @RebeccaAnne; Thanks for reviewing this previously stale pull request. Resetting staleness. @jwoo-msft FYI.

@jwoo-msft jwoo-msft merged commit 906e442 into main Oct 21, 2020
@jwoo-msft jwoo-msft deleted the jwoo/ios-column branch October 21, 2020 23:35
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* updated image renderer

* Final adjustment to vertical axis hugging priority
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS][Image - repeatHorizontally] [Parity issue: iOS requires minimum height to render background image]
2 participants