Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #45 from alfredogordian/constraint-fix
Browse files Browse the repository at this point in the history
FIX constraints MLButton
  • Loading branch information
pigounet-meli authored Jun 10, 2019
2 parents 3dd6764 + 2c96cbd commit 28e064f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# v5.9.1
### Arreglado
- Se ajusta prioridad del constraint en MLButton

# v5.9.0
### Agregado
- Se agrega ícono a MLButton según el guideline de AndesUI
- Se agrega el soporte de iconos en MLButton
- Se agrega ícono a MLButton según el guideline de AndesUI

# v5.8.0
### Agregado
Expand Down
2 changes: 1 addition & 1 deletion LibraryComponents/MLButton/classes/MLButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ - (void)setUpContentView
[self.contentView.centerXAnchor constraintEqualToAnchor:self.centerXAnchor].active = YES;

// TitleLabel Constraints
[self.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-p@priority-[label]|" options:0 metrics:@{@"p" : @0, @"priority" : @250} views:@{@"label" : self.label}]];
[self.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-p@priority-[label]|" options:0 metrics:@{@"p" : @0, @"priority" : @999} views:@{@"label" : self.label}]];
[self.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[label]|" options:0 metrics:0 views:@{@"label" : self.label}]];
}

Expand Down

0 comments on commit 28e064f

Please sign in to comment.