How should I make the border resized automatically based on the resizing of ComboBox?

I added the border as the background and there’s some checkboxes I added to ComboBox. If I expand ComboBox, the border will expand as well in order to fit the expanded size. How should I do it?

Hi there @Yilong123456. Hope you’re doing well!

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Hopefully, this category change will help in finding an answer. In the meantime, good luck and happy developing! :slight_smile:

Best post a screenshot of your widget tree, it depends on layout.
There are two common ways:

  1. Add an Overlay widget. First add a Border child to it, set it to use full width and height. Next add your ComboBox.
  2. Add a Border widget, then add a ComboBox child to it. It will be “inside” the border.