how to make Form fields auto-expand with SplitPanel splitPos?

Hi,

I have a Form on the left side of a horizontal SplitPanel. The fields are not in the correct width however. 2 questions:

  1. Is there a way to configure the form fields to take up the maximum width (minus default margins from form.getLayout.setMargin(true)) initially available on the left of the SplitPanel?

  2. How do I make the form fields auto-expand / contract when the splitter is moved?

thanks a lot, cheers.

Just set for every field the width: field.setWidth(100,Field.UNITS_PERCENTAGE).
And for the form too.

Thanks, that worked.

cheers.