Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #18 from MuscleRumble/master
Browse files Browse the repository at this point in the history
Fixed SignUpView layout when Email is used as Username AND Additional field is being used.
  • Loading branch information
nlutsenko committed Dec 15, 2014
2 parents 68e73b2 + 8654aee commit 9e3c61c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ParseUI/Classes/SignUpViewController/PFSignUpView.m
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ - (void)layoutSubviews {
currentY = CGRectGetMaxY(frame);
}

if (_emailField) {
if (_emailField && !_emailAsUsername) {
CGRect frame = PFRectMakeWithSizeCenteredInRect([_emailField sizeThatFits:contentSize], contentRect);
frame.origin.y = currentY;
_emailField.frame = frame;
Expand Down Expand Up @@ -226,7 +226,7 @@ - (CGSize)_contentSizeThatFits:(CGSize)boundingSize {
CGSize fieldSize = [_passwordField sizeThatFits:boundingSize];
size.height += fieldSize.height;
}
if (_emailField) {
if (_emailField && !_emailAsUsername) {
CGSize fieldSize = [_emailField sizeThatFits:boundingSize];
size.height += fieldSize.height;
}
Expand Down

0 comments on commit 9e3c61c

Please sign in to comment.