[UMG][Combobox] Increasing the spacing/padding between list items?

Hi all,

I’m playing around with styling on a Combobox and I would like to increase the top/bottom padding for the list items so they’re not grouped so tightly together - see the current styling vs what I’d like to achieve.

I assumed this option would be under the style section for the Combobox, but the only option I can find is the Menu Border Padding which adds padding around all of the items, and not individually for each item.

Is this possible to add padding to the list items? I feel like I’m probably missing something simple.

Thanks in advance :slight_smile:

Have you found a solution yet? I also encountered the same problem. It’s hard to believe that a powerful software like Unreal Engine can’t do simple UI stuff, like changing padding in a dropdown menu. :frowning:

Sadly not :frowning: This was a side project to play around with UMG, but a programmer I work with said that to achieve this we’d probably need to build a custom combobox.

I had to modify the engine to add an item padding property to the Combobox.
However, after a quick read-through of the Combobox file on the Git repository, it seems a property MenuRowPadding has been added to the combo box style in UE5. Better late than never :smiley:

You can achieve this without modifying the engine by adding a binding to UComboBoxString::OnGenerateWidgetEvent.

If you bind to that delegate with something such as DropdownComboBox->OnGenerateWidgetEvent.BindUFunction(this, "OnGenerateWidgetEvent"); then you can return whichever widget you would like in your OnGenerateWidgetEvent function, this includes UserWidgets. So you could create a widget which is essentially just padded text then just pass that through and it should work.