From bacb276652fa8150c4ac8f5ae2fd82e2ddd77248 Mon Sep 17 00:00:00 2001 From: ShannonChen <273879688@qq.com> Date: Wed, 8 Nov 2017 02:27:10 -0600 Subject: [PATCH] Fixes bug in MASExampleUpdateView When tapped the `growingButton`, it didn't grow. Probably we need to change the width constraint priority of `growingButton` from low to medium. I have tried this fix on my project, and it worked fine. --- Examples/Masonry iOS Examples/MASExampleUpdateView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/Masonry iOS Examples/MASExampleUpdateView.m b/Examples/Masonry iOS Examples/MASExampleUpdateView.m index 476cc09a..15a72d83 100644 --- a/Examples/Masonry iOS Examples/MASExampleUpdateView.m +++ b/Examples/Masonry iOS Examples/MASExampleUpdateView.m @@ -44,8 +44,8 @@ - (void)updateConstraints { [self.growingButton updateConstraints:^(MASConstraintMaker *make) { make.center.equalTo(self); - make.width.equalTo(@(self.buttonSize.width)).priorityLow(); - make.height.equalTo(@(self.buttonSize.height)).priorityLow(); + make.width.equalTo(@(self.buttonSize.width)).priorityMedium(); + make.height.equalTo(@(self.buttonSize.height)).priorityMedium(); make.width.lessThanOrEqualTo(self); make.height.lessThanOrEqualTo(self); }];