From 304cab2b906540f7065cc2ba84f5dbbf58494b7b Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Mon, 4 Mar 2019 19:20:33 -0500 Subject: [PATCH] Button width fix --- MVMCoreUI/TopAlert/MVMCoreUITopAlertMainView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/MVMCoreUI/TopAlert/MVMCoreUITopAlertMainView.m b/MVMCoreUI/TopAlert/MVMCoreUITopAlertMainView.m index 01870572..d05132f4 100644 --- a/MVMCoreUI/TopAlert/MVMCoreUITopAlertMainView.m +++ b/MVMCoreUI/TopAlert/MVMCoreUITopAlertMainView.m @@ -193,6 +193,7 @@ PrimaryButton *button = [PrimaryButton primaryWhiteButton:YES]; button.bordered = YES; [button setContentCompressionResistancePriority:UILayoutPriorityDefaultHigh forAxis:UILayoutConstraintAxisHorizontal]; + [button setContentHuggingPriority:800 forAxis:UILayoutConstraintAxisHorizontal]; button.translatesAutoresizingMaskIntoConstraints = NO; [self addSubview:button];