Skip to content

Commit

Permalink
Fixed buttons size bug in release compilations
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Aug 13, 2014
1 parent 75276d2 commit 45b70cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ @implementation MGSwipeButtonsView

-(instancetype) initWithButtons:(NSArray*) buttonsArray direction:(MGSwipeDirection) direction
{
CGSize maxSize;
CGSize maxSize = CGSizeZero;
for (UIView * button in buttonsArray) {
maxSize.width = MAX(maxSize.width, button.bounds.size.width);
maxSize.height = MAX(maxSize.height, button.bounds.size.height);
Expand Down

0 comments on commit 45b70cf

Please sign in to comment.