Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    removing items from DynamicForm

    Hello, I would like to dynamically change my DynamicForm.
    I do this using "clear()" and "setItems(...)" some time after the form is diaplayed and adding my new items in the DynamicForm,
    but the new form should be smaller in height than the previous one (it contains less items)
    The problem is that the DynamicForm does not reduces it's height (it still keeps the same height using empty space for the rest of the area).
    How can I set the correct size of the DynamicForm?

    Thank you in advance for your help.

    #2
    That shouldn't normally happen - a form will shrink if you give it a different set of items. So it would be great if you could post a standalone test case for this so we could look into whether there's a bug. However you can always get around this by simply calling setHeight() with a small number - the form will then auto-size to the items assuming you have left the default setting of overflow:"visible".

    Comment

    Working...
    X