Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITextField Doesn't Right Justify #70

Open
shannona opened this issue Oct 7, 2011 · 2 comments
Open

UITextField Doesn't Right Justify #70

shannona opened this issue Oct 7, 2011 · 2 comments

Comments

@shannona
Copy link

shannona commented Oct 7, 2011

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.

@jehiah
Copy link

jehiah commented Nov 25, 2011

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

@collinbrewer
Copy link

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];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants