treeComboBox dinamic width

image

image

If I set static value (example: treeComboBox.setPopupWidth(“584px”); treeComboBox.setWidth(“584px”); ) it works.
Can I use dinamic width?

Did you use something like this and it did not work ?

int i = 584;
treeComboBox.setWidth( i + “px”);

it works in your case. But i need a dinamic width and i tried like this ( treeComboBox.setPopupWidth(“100%”);
treeComboBox.setWidth("100%); ).
image
popup width smaller

Sorry, didn’t understand you correctly.

The 100% are working. The question is 100% of what ? What is the parent element ?

If you send a testproject I can show you :wink:

thanks :slight_smile: I used static width like:
treeComboBox.setPopupWidth(“584px”);
treeComboBox.setWidth(“584px”)