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

Combobox - resizing Issue (width) #145

Open
zanderson9 opened this issue Jul 22, 2020 · 2 comments
Open

Combobox - resizing Issue (width) #145

zanderson9 opened this issue Jul 22, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@zanderson9
Copy link
Collaborator

I recall we had this issue before and you resolved it.
But with with the latest changes from development branch, rc5, where you reworked the combobox and arrow behavior, we are encountering this issue again: when selecting from dropdown - not enough room for 2- or 3-digit display, it gets collapsed to ellipse (...)

Select 10 from dropdown

combobox-select10

Ellipse is displayed

combobox-ellipse

@vincenzopalazzo
Copy link
Owner

Hi @zanderson9,

I don't remember the solution at this issue, but I noted that you are using the version rc5 in dev mode, for this reason, maybe you touch the same border inside the UIManager. If yes please restore is and don't use empty border without space.

Let me know if you will resolve this issue.

@vincenzopalazzo vincenzopalazzo self-assigned this Jul 22, 2020
@vincenzopalazzo vincenzopalazzo added the invalid This doesn't seem right label Jul 22, 2020
@zanderson9
Copy link
Collaborator Author

Hi Vincent,

I checked why settings for Combobox. I do not use Empty border without space. My border space is 5,5,5,5.
But even with that, the "..." still happens

here are all my settings for Combobox:

UIManager.put("ComboBox.font", ThemeFont.getRegular());
UIManager.put("ComboBox.selectedInDropDownBackground", this.getSelectedindropdownbackground());
UIManager.put("ComboBox.background", this.getBackground());
UIManager.put("ComboBox.foreground", this.getForeground());
UIManager.put("ComboBox.selectionBackground", this.getSelectionbackground());
UIManager.put("ComboBox.selectionForeground", this.getSelectionforeground());
UIManager.put("ComboBox.disabledBackground", this.getDisabledback());
UIManager.put("ComboBox.disabledForeground", this.getDisabledforeground());
UIManager.put("ComboBox.mouseHoverColor", this.getMousehover());
UIManager.put("ComboBox.mouseHoverEnabled", this.isEnablehover());
UIManager.put("ComboBox.unfocusColor", this.getUnfocus());
UIManager.put("ComboBox.focusColor", this.getFocus());
UIManager.put("ComboBox[button].border", BorderFactory.createLineBorder(this.getButtonborder()));
UIManager.put("ComboBox.buttonBackground", this.getButtonbackground());
UIManager.put("ComboBox.borderItems", BorderFactory.createEmptyBorder(5, 5, 5 , 5));
UIManager.put("ComboBox[item].selectionForeground", this.getItemSelectionforeground());
UIManager.put("ComboBox.border", MaterialBorders.roundedLineColorBorder(this.getBorder(), 0));
UIManager.put("ComboBox.arc", 0);
UIManager.put("ComboBox.buttonIcon", MaterialImageFactory.getInstance().getImage(MaterialIconFont.ARROW_DROP_DOWN, getSelectionforeground()));
UIManager.put("ComboBox.buttonDisabledIcon", MaterialImageFactory.getInstance().getImage(MaterialIconFont.ARROW_DROP_DOWN, getDisabledforeground()));
UIManager.put("ComboBox.buttonSelectIcon", MaterialImageFactory.getInstance().getImage(MaterialIconFont.ARROW_DROP_DOWN,getFocus()));

@vincenzopalazzo vincenzopalazzo added bug Something isn't working and removed invalid This doesn't seem right labels Jul 22, 2020
@vincenzopalazzo vincenzopalazzo removed this from the Material-UI-Swing 1.1.2 milestone Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants