From 81fb3d02a4383c64648afb124a54144d9a95435f Mon Sep 17 00:00:00 2001 From: Semen Osipov Date: Wed, 1 Nov 2023 11:38:43 +0300 Subject: [PATCH] Fixed delete button size updating for localized titles --- TOPasscodeViewController/TOPasscodeViewController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/TOPasscodeViewController/TOPasscodeViewController.m b/TOPasscodeViewController/TOPasscodeViewController.m index 764f944..ed4b2aa 100755 --- a/TOPasscodeViewController/TOPasscodeViewController.m +++ b/TOPasscodeViewController/TOPasscodeViewController.m @@ -456,6 +456,7 @@ - (void)keypadButtonTapped [UIView performWithoutAnimation:^{ if (title != nil) { [self.cancelButton setTitle:title forState:UIControlStateNormal]; + [self.cancelButton sizeToFit]; [self.cancelButton layoutIfNeeded]; } self.cancelButton.hidden = (title == nil);