Hello sir/mam,
I am facing one issue when using combo editor. When I am in edit. Mode sometimes the option are too big that they aren't visible properly in the combo box and it's ui is not looking good.Is there any way to autoset the width or something? To adjust it. Or is there any way I can use select 2 plugin. Inside it?. Please help me out with it.
I also had to face the same issue when I created a plugin for my PSL Squad 2026. After that, I had to hire a developer who fixed it for me. I think you should talk to a developer.
The most reliable way to fix the width for a cricket app is to define a min-width or a fixed width using CSS. This ensures the box stays consistent regardless of the team name length.
You can integrate Select2 by initializing it on your combo box element. Here’s a simple example:
$('#your-combo-box').select2({ width: 'auto' // Automatically adjusts the width });
hi
Yes, you can fix it. Most combo editors let you auto-adjust width based on the longest option using CSS like width: auto; min-width: 100%; or by setting the dropdown width with JS.
width: auto; min-width: 100%;