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

w2field and the automatic set of width of list (combo) according the most width item #2556

Open
jankrnavek opened this issue Sep 1, 2024 · 0 comments

Comments

@jankrnavek
Copy link

jankrnavek commented Sep 1, 2024

Adding an option to the w2field definition to automatically set the width of the dropdown list or combo according to the most widest item in the list.

https://w2ui.com/web/docs/2.0/form/fields-list

For clarity, I don't want to change the size of the input tag itself, only its dropdown list.

For now I am doing like this bellow, but I affect the position of toolbar tooltips as well.

// width of combo box
.w2ui-overlay {
	width: 400px !important;
}

//  top arrow position
.w2ui-overlay .w2ui-overlay-body::before {
	left: 40px !important;
}

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

1 participant