Skip to content

Commit

Permalink
Merge pull request #5892 from vector-im/andy/5875_login_button
Browse files Browse the repository at this point in the history
Ensure the login button is always visible
  • Loading branch information
Anderas authored Mar 23, 2022
2 parents 70d39ef + ef45cc0 commit db26880
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 86 deletions.
2 changes: 0 additions & 2 deletions Riot/Modules/Authentication/AuthenticationViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
@property (weak, nonatomic) IBOutlet UIButton *skipButton;
@property (weak, nonatomic) IBOutlet UIButton *forgotPasswordButton;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *submitButtonMinLeadingConstraint;

@property (weak, nonatomic) IBOutlet UIView *serverOptionsContainer;
@property (weak, nonatomic) IBOutlet UIButton *customServersTickButton;
@property (weak, nonatomic) IBOutlet UIView *customServersContainer;
Expand Down
11 changes: 0 additions & 11 deletions Riot/Modules/Authentication/AuthenticationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1058,17 +1058,6 @@ - (void)updateForgotPwdButtonVisibility
}

self.forgotPasswordButton.hidden = !showForgotPasswordButton;

// Adjust minimum leading constraint of the submit button
if (self.forgotPasswordButton.isHidden)
{
self.submitButtonMinLeadingConstraint.constant = 19;
}
else
{
CGRect frame = self.forgotPasswordButton.frame;
self.submitButtonMinLeadingConstraint.constant = frame.origin.x + frame.size.width + 10;
}
}

- (void)afterSetPinFlowCompletedWithCredentials:(MXCredentials*)credentials
Expand Down
Loading

0 comments on commit db26880

Please sign in to comment.