Skip to content

Commit fb27644

Browse files
authored
Jwoo/1.2/minor update (#3813)
* updated height * updated
1 parent 669eb2f commit fb27644

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRActionSetRenderer.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ - (UIView *)renderButtons:(ACRView *)rootView
155155
containingView.contentview = childview;
156156
containingView.contentWidth = contentWidth;
157157

158-
[containingView.heightAnchor constraintEqualToConstant:maxHeight].active = YES;
158+
[containingView.heightAnchor constraintEqualToAnchor:childview.heightAnchor multiplier:1.0].active = YES;
159159
containingView.translatesAutoresizingMaskIntoConstraints = NO;
160160

161161
[NSLayoutConstraint constraintWithItem:containingView
@@ -191,7 +191,7 @@ - (UIView *)renderButtons:(ACRView *)rootView
191191
constant:0]
192192
.active = YES;
193193

194-
if (ActionsOrientation::Horizontal == adaptiveActionConfig.actionsOrientation) {
194+
if (adaptiveActionConfig.actionAlignment == ActionAlignment::Stretch) {
195195
containingView.stretch = true;
196196
}
197197

0 commit comments

Comments
 (0)