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

JComboBox with custom renderer will not render correctly the selected value (arrow to big) #361

Closed
sbodmer opened this issue Jul 26, 2021 · 1 comment
Milestone

Comments

@sbodmer
Copy link
Contributor

sbodmer commented Jul 26, 2021

When I define a custom renderer on a JComboBox, the selected value is displayed (I think) with the custom renderer, but the arrow button takes all the space.
FlatCombobox
Using a common Laf (ex: Nimbus), the arrow is small and the image is displayed in full.

DevCharly added a commit that referenced this issue Aug 2, 2021
@DevCharly
Copy link
Collaborator

Thx. Fixed in main branch.

The width of the arrow button is now limited the height of a raw combobox/spinner,
which keeps it square in normal cases, but avoids that it becomes too wide.

image
(this image shows comboboxes and spinners that are taller than normal)

@DevCharly DevCharly added this to the 1.5 milestone Aug 2, 2021
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

2 participants