BigZaphod/Chameleon

UITextField Doesn't Right Justify

shannona opened this issue · 2 comments

Setting the textAlignment field in a UITextField to UITextAlignmentRight doesn't appear to do anything; the text remains justified left. I'd guess the same is true for UITextView since they both appear to use the same private, UITextLayer.

fyi, i think the fix for this is in riquedafreak@1420fef364d51c55fcac41cddae91916f53f7bd9

Link provided by jehiah is dead.

It doesn't honor UITextAlignmentCenter either, I got around this by commenting out the following in UICustomNSTextView.m:

[[self textContainer] setWidthTracksTextView:NO];