I’m running into an issue with the ComboBox in JMP. The dropdown width is automatically adjusted based on the longest value in the list. Since I’m loading data from a database, most values are short, but a few are very lengthy. When those long values are included, the entire dropdown becomes excessively wide.
I haven’t been able to find any documentation on how to control or fix the dropdown size. Is there a way to set a maximum width or otherwise prevent the ComboBox from expanding too much when one value is lengthy?
// Example ComboBox with mixed-length values
New Window( "ComboBox Size Issue",
<<Background Color( "white" ),
V List Box(
Text Box( "Select an option:" ),
Combo Box(
{"Cat", "Dog", "Bird", "Elephant",
"ThisIsASingleVeryVeryVeryLongValueThatMakesTheDropdownTooWide aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaabbbbbbb"},
<<Set Function( Function( {this},
Show( this << Get Selected )
))
)
)
);