File tree Expand file tree Collapse file tree
source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments