We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add API or documentation to change the width of the overlay
The text was updated successfully, but these errors were encountered:
Related to this: https://github.com/vaadin/vaadin-combo-box/issues/892
A workaround: comboBox.getElement().getStyle().set("--vaadin-combo-box-overlay-width", "400px")
comboBox.getElement().getStyle().set("--vaadin-combo-box-overlay-width", "400px")
vaadin/vaadin-combo-box#942
Sorry, something went wrong.
It's also possible to get the maximum length of the items (for example "John Doe") and set the width "dynamically" in characters width: 8ch.
width: 8ch
like comboBox.getElement().getStyle().set("--vaadin-combo-box-overlay-width", "calc( margin/padding + max_value ch )").
comboBox.getElement().getStyle().set("--vaadin-combo-box-overlay-width", "calc( margin/padding + max_value ch )")
It requires some calculation and all the data in memory to calculate the maximum width.
No branches or pull requests
Add API or documentation to change the width of the overlay
The text was updated successfully, but these errors were encountered: