|
@@ -157,7 +157,7 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
|
|
|
|
|
|
let frameEndUserInfoKey = UIResponder.keyboardFrameEndUserInfoKey
|
|
let frameEndUserInfoKey = UIResponder.keyboardFrameEndUserInfoKey
|
|
if let keyboardFrame = info[frameEndUserInfoKey] as? CGRect {
|
|
if let keyboardFrame = info[frameEndUserInfoKey] as? CGRect {
|
|
- let diff = keyboardFrame.origin.y - centerObject.y - (self.activeTextField.frame.height / 2)
|
|
|
|
|
|
+ let diff = keyboardFrame.origin.y - centerObject.y - self.activeTextField.frame.height
|
|
if diff < 0 {
|
|
if diff < 0 {
|
|
activeTextfieldDiff = diff
|
|
activeTextfieldDiff = diff
|
|
imageBrandConstraintY.constant += diff
|
|
imageBrandConstraintY.constant += diff
|