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

PasswordField inner bounds go beyond capslock icon #172

Closed
Blanco27 opened this issue Sep 8, 2020 · 3 comments
Closed

PasswordField inner bounds go beyond capslock icon #172

Blanco27 opened this issue Sep 8, 2020 · 3 comments
Milestone

Comments

@Blanco27
Copy link
Contributor

Blanco27 commented Sep 8, 2020

incorrect bounds

Instead the bounds should stop right before the capslock icon. As it looks really weird if it goes beyond it.
This would require dynamically changing the bounds and maybe the viewport when capslock is being toggled, as the selection could be where the capslock icon will appear.

EDIT:
Also, is there a way to disable the icon? Setting the UIManager key to null didn't appear to work.

@DevCharly
Copy link
Collaborator

Yes, this looks a little bit weird, but is rare IMHO. Usually password field should be wide enough to avoid vertical scrolling. And releasing Caps Lock fixes the issue 😉

Anyway, I'll fix it when #173 is fixed.
BTW on macOS (native and Java Aqua LaF), the Caps Lock icon also hides text...

Disabling Caps Lock icon is now possible in FlatLaf 0.42 with:

UIManager.put( "PasswordField.showCapsLock", false );

@DevCharly
Copy link
Collaborator

fixed in main branch

@DevCharly DevCharly added this to the 1.4 milestone Jul 9, 2021
@Bios-Marcel
Copy link
Contributor

Thanks :)

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