Skip to content

Commit

Permalink
Fixed a bug in the button size
Browse files Browse the repository at this point in the history
  • Loading branch information
bpoplauschi committed Oct 13, 2014
1 parent 9c6eb34 commit 6460300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BPForms/Cells/Button/BPFormButtonCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ - (void)setupButton {
[self.contentView addSubview:self.button];

// need to set the frame, otherwise there are cases where, even if the constraints are fine, the frame remains zero-rect
self.button.frame = CGRectMake(roundf(30.0f / 2.0f), self.frame.origin.y, self.frame.size.width - 30.0f, self.frame.size.height);
self.button.frame = CGRectMake(roundf(30.0f / 2.0f), self.frame.origin.y, self.frame.size.width - 30.0f, self.frame.size.height - self.spaceToNextCell);

[self.widthConstraint uninstall];
[self.heightConstraint uninstall];
Expand Down

0 comments on commit 6460300

Please sign in to comment.