Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Provide possibility to change whitespace in ComboBox #574

Open
Lesurglesum opened this issue Aug 28, 2019 · 0 comments
Open

Provide possibility to change whitespace in ComboBox #574

Lesurglesum opened this issue Aug 28, 2019 · 0 comments

Comments

@Lesurglesum
Copy link

Sometimes between a ComboBox Text and its arrow-button is some whitespace which you cannot get rid of. The computePrefWidth method of the anonymous class ListView of ComboBoxListViewSkin seems to be responsible for this whitespace. In particular this line of code:

pw = Math.max(comboBox.getWidth(), skin.getMaxCellWidth(rowsToMeasure) + 30);

On Stack Overflow is a question which addresses this problem already.

It would be nice if you could change this behaviour without the need to extend ComboBoxListViewSkin and provide your own Skin to ComboBox.

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

No branches or pull requests

1 participant