From ef45cc029db92e903b2a0233873ec5f60afcff7d Mon Sep 17 00:00:00 2001 From: Andy Uhnak Date: Tue, 22 Mar 2022 10:59:31 +0000 Subject: [PATCH] Ensure the login button is always visible --- .../AuthenticationViewController.h | 2 - .../AuthenticationViewController.m | 11 -- .../AuthenticationViewController.xib | 150 +++++++++--------- changelog.d/5875.bugfix | 1 + 4 files changed, 78 insertions(+), 86 deletions(-) create mode 100644 changelog.d/5875.bugfix diff --git a/Riot/Modules/Authentication/AuthenticationViewController.h b/Riot/Modules/Authentication/AuthenticationViewController.h index dd76303a4d..f023490c04 100644 --- a/Riot/Modules/Authentication/AuthenticationViewController.h +++ b/Riot/Modules/Authentication/AuthenticationViewController.h @@ -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; diff --git a/Riot/Modules/Authentication/AuthenticationViewController.m b/Riot/Modules/Authentication/AuthenticationViewController.m index c8507dc5e3..c8c95e2ddd 100644 --- a/Riot/Modules/Authentication/AuthenticationViewController.m +++ b/Riot/Modules/Authentication/AuthenticationViewController.m @@ -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 diff --git a/Riot/Modules/Authentication/AuthenticationViewController.xib b/Riot/Modules/Authentication/AuthenticationViewController.xib index c779ced892..c90f28e22c 100644 --- a/Riot/Modules/Authentication/AuthenticationViewController.xib +++ b/Riot/Modules/Authentication/AuthenticationViewController.xib @@ -1,9 +1,9 @@ - + - + @@ -44,7 +44,6 @@ - @@ -91,7 +90,7 @@