From 0d895620b5a05b697fc246f91d86af583a388fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yu=C5=9Fa?= Date: Thu, 19 Mar 2020 13:23:02 +0300 Subject: [PATCH] Fix#6292 - Login&Password- SelectAllButton is cropped even if not active --- Client/Frontend/Login Management/LoginListViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/Frontend/Login Management/LoginListViewController.swift b/Client/Frontend/Login Management/LoginListViewController.swift index 4695b65e98a3..43c2cf6cf3b1 100644 --- a/Client/Frontend/Login Management/LoginListViewController.swift +++ b/Client/Frontend/Login Management/LoginListViewController.swift @@ -62,7 +62,6 @@ class LoginListViewController: SensitiveViewController { fileprivate lazy var selectionButton: UIButton = { let button = UIButton() button.titleLabel?.font = LoginListUX.selectionButtonFont - button.setTitle(self.selectAllTitle, for: []) button.addTarget(self, action: #selector(tappedSelectionButton), for: .touchUpInside) return button }() @@ -286,6 +285,7 @@ private extension LoginListViewController { navigationItem.rightBarButtonItem = nil navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(cancelSelection)) selectionButtonHeightConstraint?.update(offset: UIConstants.ToolbarHeight) + selectionButton.setTitle(selectAllTitle, for: []) self.view.layoutIfNeeded() tableView.setEditing(true, animated: true) tableView.reloadData() @@ -296,6 +296,7 @@ private extension LoginListViewController { loginSelectionController.deselectAll() toggleSelectionTitle() selectionButtonHeightConstraint?.update(offset: 0) + selectionButton.setTitle(nil, for: []) self.view.layoutIfNeeded() tableView.setEditing(false, animated: true)