does not seem to use all the div but just a part of it. And it seems that i do need to set a width in order to get a visible output (which othewise gets a witdth of 0).
Is there a way to get round this?
Components do not listen to size changing of custom containers. So, if you set size for your div dynamically, form won’t adjust its sizes. You need to call adjust() in this case.