lindegroup / autopkgr

AutoPkgr is a free Mac app that makes it easy to install and configure AutoPkg.
http://www.lindegroup.com/autopkgr
Apache License 2.0
536 stars 51 forks source link

JSSImporter Distribution Point: password prompt wraps on long passwords #481

Closed 1dustindavis closed 8 years ago

1dustindavis commented 8 years ago

When you click "Connect" in the JSSImporter Integration configuration panel, the "Distribution Point Password Required" prompt appears. Passwords over 48 characters cause the text display to wrap. This can cause confusion, especially when pasting passwords into the prompt.

Ideally the password field would just push text off screen to the left as more text is added, which is how passwords are treated in most OS X apps.

48 Character Password: 48 charachter password

49 Character Password: 49 charachter password

homebysix commented 8 years ago

I have this in my clipboard and don't know where to paste it:

setLineBreakMode:NSLineBreakByClipping
eahrold commented 8 years ago

@homebysix look right around here...

https://github.com/lindegroup/autopkgr/blob/master/AutoPkgr/Views-Controllers-XIB/Integration%20Views/LGJSSImporterIntegrationView.m#L250-251

homebysix commented 8 years ago

I think I got it! Thanks @eahrold. Will be included in #504.