Commit b9c10301 by Daniel Dahan

issue-456: Updated submitted code

parent b14caf8a
......@@ -630,13 +630,8 @@ public class TextField : UITextField {
addTarget(self, action: #selector(handleEditingDidEnd), forControlEvents: .EditingDidEnd)
}
/// Prepares the target handlers.
/// Prepares the textAlignment.
private func prepareTextAlignment() {
if (UIApplication.sharedApplication().userInterfaceLayoutDirection == .RightToLeft) {
self.textAlignment = .Right
}
else {
self.textAlignment = .Left
}
textAlignment = UIApplication.sharedApplication().userInterfaceLayoutDirection == .RightToLeft ? .Right : .Left
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment