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

Commit 9e3c61c

Browse files
committed
Merge pull request #18 from MuscleRumble/master
Fixed SignUpView layout when Email is used as Username AND Additional field is being used.
2 parents 68e73b2 + 8654aee commit 9e3c61c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ParseUI/Classes/SignUpViewController/PFSignUpView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ - (void)layoutSubviews {
171171
currentY = CGRectGetMaxY(frame);
172172
}
173173

174-
if (_emailField) {
174+
if (_emailField && !_emailAsUsername) {
175175
CGRect frame = PFRectMakeWithSizeCenteredInRect([_emailField sizeThatFits:contentSize], contentRect);
176176
frame.origin.y = currentY;
177177
_emailField.frame = frame;
@@ -226,7 +226,7 @@ - (CGSize)_contentSizeThatFits:(CGSize)boundingSize {
226226
CGSize fieldSize = [_passwordField sizeThatFits:boundingSize];
227227
size.height += fieldSize.height;
228228
}
229-
if (_emailField) {
229+
if (_emailField && !_emailAsUsername) {
230230
CGSize fieldSize = [_emailField sizeThatFits:boundingSize];
231231
size.height += fieldSize.height;
232232
}

0 commit comments

Comments
 (0)