Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ActionSet refactoring & Extra View Removal.#3818

Merged
jwoo-msft merged 2 commits into
masterfrom
jwoo/back-port-from-1.2
Mar 7, 2020
Merged

ActionSet refactoring & Extra View Removal.#3818
jwoo-msft merged 2 commits into
masterfrom
jwoo/back-port-from-1.2

Conversation

@jwoo-msft

@jwoo-msft jwoo-msft commented Mar 3, 2020

Copy link
Copy Markdown
Member

Fixed ActionSet having extra height.
This is a back port from release/1.2 branch.

Related Issue

fixed #3784

Description

There was an extra view between base elements and actions causing the view's expansion.

How Verified

Verified that extra view was removed.
Worked with the Teams mobile to confirm it.

Microsoft Reviewers: Open in CodeFlow

* have and width and height constraint

* fix test 1

* some update and fixed for bug

* fixed actionset clipping issue

* Updated vertical

* updated for CR
@jwoo-msft jwoo-msft changed the title Jwoo/ios 1.2 actionset (#3810) ActionSet refactoring & Extra View Removal. Mar 3, 2020

@shalinijoshi19 shalinijoshi19 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

:shipit:

inputs,
acoElem,
config,
handleActionFallbackException(exception, superview, rootView, inputs, acoElem, config,

@almedina-ms almedina-ms Mar 4, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if all the other changes were to change the parameters to be arranged vertically, why is this one to make the parameters arranged horizontally? #Resolved

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this is done by clang-format according to Apple Coding style.


In reply to: 387950316 [](ancestors = 387950316)

ACOFeatureRegistration *featureReg = [ACOFeatureRegistration getInstance];

UIView<ACRIContentHoldingView> *childview = nil;
UIStackView *childview = [[UIStackView alloc] init];

@almedina-ms almedina-ms Mar 4, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why was the previous design using some of our custom views? what advantages does changing to a UIStackview has? #Resolved

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we don't need custom view's extra feature. stock UIStackView is sufficient to get the job done.


In reply to: 387950942 [](ancestors = 387950942)


if (ActionsOrientation::Horizontal == adaptiveActionConfig.actionsOrientation) {
childview = [[ACRColumnSetView alloc] initWithFrame:CGRectMake(0, 0, superview.frame.size.width, superview.frame.size.height) attributes:attributes];
((ACRColumnSetView *)childview).isActionSet = YES;

@almedina-ms almedina-ms Mar 4, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what other parts of the code use the isActionSet property? is it still a good idea to keep this flag existing for something else? #Resolved

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is for layoutsubview method to readjust the action set; this task is handled by ACRContentHoldingUIScrollView atm, but the code can be still used if we others use containing view to the custom view.


In reply to: 387951641 [](ancestors = 387951641)

}

if (isDeficientInWidth and isDeficientInWidth) {
if (isDeficientInWidth and isDeficientInHeight) {

@almedina-ms almedina-ms Mar 4, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

isn't this change in other PR too? #Resolved

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes, it was added by cherry-pick; shouldn't matter though as the conflict can be resolved.


In reply to: 387951953 [](ancestors = 387951953)

@ghost ghost removed the Needs: Author Feedback label Mar 7, 2020
@jwoo-msft jwoo-msft merged commit cb2227c into master Mar 7, 2020
@jwoo-msft jwoo-msft deleted the jwoo/back-port-from-1.2 branch March 7, 2020 04:18
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* have and width and height constraint

* fix test 1

* some update and fixed for bug

* fixed actionset clipping issue

* Updated vertical

* updated for CR
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][Card-Height-Rendering] [Card heights changes based on number of actions in ActionsSet]

3 participants