Various fixes

This commit is contained in:
Ilya Laktyushin
2023-01-18 16:11:11 +04:00
parent b26479f9f3
commit 86ee12c1c8
26 changed files with 468 additions and 240 deletions

View File

@@ -8,15 +8,15 @@ public final class TextFieldNodeView: UITextField {
var fixOffset: Bool = true
override public func editingRect(forBounds bounds: CGRect) -> CGRect {
return bounds.offsetBy(dx: 0.0, dy: 0.0).integral
return bounds.integral
}
override public func textRect(forBounds bounds: CGRect) -> CGRect {
return bounds.offsetBy(dx: 0.0, dy: 0.0).integral
return bounds.integral
}
override public func placeholderRect(forBounds bounds: CGRect) -> CGRect {
return self.editingRect(forBounds: bounds.offsetBy(dx: 0.0, dy: 0.0))
return self.editingRect(forBounds: bounds)
}
override public func deleteBackward() {